application-amicale/native-base-theme/components/Subtitle.js

19 lines
461 B
JavaScript
Raw Normal View History

2019-06-25 22:20:24 +02:00
// @flow
import { Platform } from "react-native";
import variable from "./../variables/platform";
export default (variables /*: * */ = variable) => {
const subtitleTheme = {
fontSize: variables.subTitleFontSize,
fontFamily: variables.titleFontfamily,
color: variables.subtitleColor,
textAlign: "center",
paddingLeft: Platform.OS === "ios" ? 4 : 0,
marginLeft: Platform.OS === "ios" ? undefined : -3
};
return subtitleTheme;
};