diff options
author | Michael <michael.foiani@gmail.com> | 2021-08-02 11:41:51 -0400 |
---|---|---|
committer | Michael <michael.foiani@gmail.com> | 2021-08-02 11:41:51 -0400 |
commit | e3f8180e24b35eccdb49fe766b9e1fe10c33da3f (patch) | |
tree | 1841dda83317d0b3ac922691493197aacb036677 /src/components/moments/IndividualMomentTitleBar.tsx | |
parent | cf2a5b7294ed3c51898febf393a50108e2b9825d (diff) | |
parent | 452f3fb44838c367f40e8aa57db2e274a357afd2 (diff) |
Pull from master
Diffstat (limited to 'src/components/moments/IndividualMomentTitleBar.tsx')
-rw-r--r-- | src/components/moments/IndividualMomentTitleBar.tsx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/components/moments/IndividualMomentTitleBar.tsx b/src/components/moments/IndividualMomentTitleBar.tsx deleted file mode 100644 index c6bf1423..00000000 --- a/src/components/moments/IndividualMomentTitleBar.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import React from 'react'; -import {StyleSheet, Text, View, ViewProps} from 'react-native'; -import {normalize, SCREEN_WIDTH} from '../../utils'; - -interface IndividualMomentTitleBarProps extends ViewProps { - title: string; -} -const IndividualMomentTitleBar: React.FC<IndividualMomentTitleBarProps> = ({ - title, -}) => { - return ( - <View style={styles.mainContainer}> - <View style={styles.titleContainer}> - <Text - style={[ - styles.title, - { - fontSize: title.length > 18 ? normalize(14) : normalize(16), - }, - ]}> - {title} - </Text> - </View> - </View> - ); -}; - -const styles = StyleSheet.create({ - title: { - textAlign: 'center', - color: 'white', - fontSize: normalize(18), - fontWeight: '700', - lineHeight: normalize(21.48), - letterSpacing: normalize(1.3), - }, - titleContainer: { - width: '80%', - position: 'absolute', - left: '10%', - right: '10%', - height: normalize(70), - }, - mainContainer: { - flex: 1, - width: SCREEN_WIDTH * 0.6, - flexDirection: 'row', - justifyContent: 'flex-end', - marginVertical: '2%', - }, -}); - -export default IndividualMomentTitleBar; |