Skip to content

Instantly share code, notes, and snippets.

@ecdundar
Created February 25, 2019 07:06
Show Gist options
  • Save ecdundar/ef5a74296f9ef17ee3e76045271be8d2 to your computer and use it in GitHub Desktop.
Save ecdundar/ef5a74296f9ef17ee3e76045271be8d2 to your computer and use it in GitHub Desktop.
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