Commit 75c29bcb authored by Pramodh Rajapakse's avatar Pramodh Rajapakse

button component created

parent 61995ae6
import React from 'react'; import React from 'react';
import { StyleSheet, Button, View, SafeAreaView, Text, Alert } from 'react-native'; import { StyleSheet, TouchableOpacity, View, Text } from 'react-native';
const Separator = () => <View style={styles.separator} />; export const AppButton = (props) => {
return(
<TouchableOpacity onPress={props.onPress} style={styles.Button}>
<Text>{props.label}</Text>
</TouchableOpacity>
)
}
export default Separator; const styles = StyleSheet.create({
Button:{
alignItems: "center",
padding: 10
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment