diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-21 13:44:51 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-21 13:44:51 -0700 |
commit | a4d9a5fe38aaa4b6347edfb942375fa882f53ad7 (patch) | |
tree | 20bd5dcef37b0efb1503744db9e7e4318dd711d5 /src | |
parent | e513dfdbe606f1a55a08a5d282f663761c4916b3 (diff) |
Move code to header component
Diffstat (limited to 'src')
-rw-r--r-- | src/components/moments/MomentPost.tsx | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index 1a0dc981..c010e2cb 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -128,43 +128,7 @@ const MomentPost: React.FC<MomentPostProps> = ({ navigation.setOptions({ ...headerBarOptions('white', ''), headerTitle: () => ( - <View - style={{ - flex: 1, - width: SCREEN_WIDTH * 0.6, - flexDirection: 'row', - justifyContent: 'flex-end', - marginVertical: '2%', - }}> - <View - style={{ - width: '80%', - position: 'absolute', - left: '10%', - right: '10%', - height: normalize(70), - }}> - <Text - style={[ - { - textAlign: 'center', - color: 'white', - fontSize: normalize(18), - fontWeight: '700', - lineHeight: normalize(21.48), - letterSpacing: normalize(1.3), - }, - { - fontSize: - moment.moment_category.length > 18 - ? normalize(14) - : normalize(16), - }, - ]}> - {moment.moment_category} - </Text> - </View> - </View> + <IndividualMomentTitleBar title={moment.moment_category} /> ), }), [moment.moment_id], |