Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- import { Button } from "react-native-elements";
- import { View } from "react-native";
- const BandButton = ({ onPress, title }) => {
- return (
- <Button
- title={title}
- onPress={onPress}
- buttonStyle={{
- height: 60,
- borderRadius: 5,
- backgroundColor:{backgroundColor}
- }}
- />
- )
- };
- export default BandButton;
- <BandButton
- title='Add details'
- onPress ={() => this.props.navigation.navigate('Create')}
- buttonStyle={{backgroundColor: '#FF9800'}}
- />
Add Comment
Please, Sign In to add comment