Skip to content

Instantly share code, notes, and snippets.

@creotiv
Created February 28, 2020 09:50
Show Gist options
  • Save creotiv/9651f50af122e0f0b19fe6de5e0f9afa to your computer and use it in GitHub Desktop.
Save creotiv/9651f50af122e0f0b19fe6de5e0f9afa to your computer and use it in GitHub Desktop.
import React from 'react';
import { Text, View } from 'react-native';
const Button = ({ btnName }) => {
const {
containerStyle,
textStyle
} = styles;
return (
<View style={containerStyle}>
<Text style={textStyle}>{btnName}</Text>
</View>
);
};
const styles = {
containerStyle: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
margin
},
textStyle: {
textAlign: 'center',
fontSize: 25,
fontFamily: fonts.bold,
color: colors.grayLight,
margin
}
};
export default Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment