Guest User

Untitled

a guest
Oct 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import React from "react";
  2. import { Button } from "react-native-elements";
  3. import { View } from "react-native";
  4.  
  5. const BandButton = ({ onPress, title }) => {
  6. return (
  7.  
  8. <Button
  9. title={title}
  10. onPress={onPress}
  11. buttonStyle={{
  12. height: 60,
  13. borderRadius: 5,
  14. backgroundColor:{backgroundColor}
  15.  
  16. }}
  17.  
  18. />
  19. )
  20. };
  21.  
  22. export default BandButton;
  23.  
  24. <BandButton
  25. title='Add details'
  26. onPress ={() => this.props.navigation.navigate('Create')}
  27. buttonStyle={{backgroundColor: '#FF9800'}}
  28.  
  29. />
Add Comment
Please, Sign In to add comment