SquareButtonComponent.js
458 Bytes
import React from 'react';
import {TouchableOpacity, View, Text} from 'react-native';
const SquareButtonComponent = (props) => {
const {onPress, text, style1, style2} = props;
return (
<TouchableOpacity onPress={onPress}>
<View style={style1}>
<Text style={style2}>
{text}
</Text>
</View>
</TouchableOpacity>
)
};
export default SquareButtonComponent;