Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. import React from 'react';
  2. import {View, Text} from 'react-native';
  3. import {Colors} from 'react-native-paper';
  4. import Icon from 'react-native-vector-icons/Ionicons';
  5. // Add styles
  6. import {styles} from './Header.css.js';
  7.  
  8. const Header = props => {
  9. return (
  10. <View style={{width: '100%'}}>
  11. <View style={[styles.headerBox, {justifyContent: 'space-between'}]}>
  12. <View style={{flexDirection: 'row'}}>
  13. <Icon
  14. onPress={props.onPressBack}
  15. name="ios-arrow-back"
  16. color={Colors.red100}
  17. size={28}
  18. style={{marginTop: 5, marginLeft: 5}}
  19. />
  20. <View style={styles.storeName}>
  21. <Text style={styles.storeNameText}>{props.title}</Text>
  22. </View>
  23. </View>
  24.  
  25. <View style={{flexDirection: 'row'}}>
  26. {props.children}
  27. </View>
  28. </View>
  29. </View>
  30. );
  31. };
  32.  
  33. export default Header;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement