Skip to content

Instantly share code, notes, and snippets.

@DevGW
Created December 29, 2022 13:45
Show Gist options
  • Save DevGW/2a4d187504c3d3314ab2c4d83500925f to your computer and use it in GitHub Desktop.
Save DevGW/2a4d187504c3d3314ab2c4d83500925f to your computer and use it in GitHub Desktop.
React App Template :: Button.js
import React from 'react'
import { View, Button, StyleSheet, TouchableOpacity, Text } from "react-native";
import {userStyles} from "../styles/usermgt";
const StyledButton = ({ onPress, title }) => {
return (
<TouchableOpacity onPress={onPress} style={userStyles.buttonContainer}>
<Text style={userStyles.buttonText}>{title}</Text>
</TouchableOpacity>
);
}
export default StyledButton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment