This commit is contained in:
Pat Teruel
2026-01-30 16:42:46 +08:00
parent 4eee4a9859
commit f3e347472e
7 changed files with 2930 additions and 11 deletions

21
components/MyText.js Normal file
View File

@@ -0,0 +1,21 @@
import React from 'react';
import { Text, StyleSheet, TouchableOpacity } from 'react-native';
const MyText = ({ yournameherefromprops, onPress }) => {
return (
<TouchableOpacity onPress={onPress}>
<Text style={styles.redText}>
Hello, {yournameherefromprops}
</Text>
</TouchableOpacity>
);
};
const styles = StyleSheet.create({
redText: {
color: 'red',
fontSize: 24,
},
});
export default MyText;