Created
February 25, 2019 07:06
-
-
Save ecdundar/ef5a74296f9ef17ee3e76045271be8d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { TouchableOpacity, Text, StyleSheet } from 'react-native'; | |
const BBButon = props => { | |
return ( | |
<TouchableOpacity style={styles.button} onPress={props.itemClick}> | |
<Text style={styles.text}>{props.title}</Text> | |
</TouchableOpacity> | |
); | |
}; | |
const styles = StyleSheet.create({ | |
button: { | |
alignItems: 'center', | |
backgroundColor: '#f05555', | |
color: '#ffffff', | |
padding: 10, | |
marginTop: 16, | |
marginLeft: 35, | |
marginRight: 35, | |
}, | |
text: { | |
color: '#ffffff', | |
}, | |
}); | |
export default BBButon; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment