Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. export default class Contacts extends React.Component {
  2. static navigationOptions = ({ navigation: { navigate } }) => ({
  3. title: 'TestApp',
  4. headerTintColor: 'white',
  5. headerStyle: {
  6. backgroundColor: colors.blue,
  7. },
  8. headerLeft: (
  9. <TouchableOpacity onPress={() => navigate.toggleDrawer()}>
  10. <MaterialIcons
  11. name="menu"
  12. size={24}
  13. style={{ color: colors.black, marginLeft: 10 }}
  14. />
  15. </TouchableOpacity>
  16. ),
  17. headerRight: (
  18. <TouchableOpacity onPress={() => navigate('Transactions')}>
  19. <Icon
  20. name="pie-chart"
  21. type='font-awesome'
  22. size={24}
  23. style={{ color: colors.black, marginRight: 10 }}
  24. />
  25. </TouchableOpacity>
  26. ),
  27. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement