Guest User

Untitled

a guest
Jan 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <Scene key="profile" path="/profile/posts/:userIdParam" identifier="profile" component={PostProfileContainer} back navBar={CustomNavBar}/>
  2.  
  3. const CustomNavBar = ({back, title,identifier}) => {
  4. return (
  5. <View style={styles.customNavigationContainer}>
  6.  
  7. {back && <TouchableOpacity onPress={Actions.pop} style={styles.leftRightContainer}>
  8. <View style={styles.backSubContainer}>
  9. <Icon name="ios-arrow-back" style={styles.backArrowIcon}/>
  10. <Text style={{fontSize: 16, marginLeft: 10, color: 'black'}}>Back</Text>
  11. </View>
  12. </TouchableOpacity>}
  13. <View style={styles.navigationTitleContainer}>
  14. <Text style={styles.navigationTitleText}>
  15. {title}
  16. </Text>
  17. </View>
  18. {back && <View style={styles.leftRightContainer}>
  19. <View style={styles.backSubContainer}/>
  20. </View>}
  21. </View>
  22. )
  23. };
Add Comment
Please, Sign In to add comment