diff --git a/salamander-app/App.js b/salamander-app/App.js index 181f3cee3bafb30959cbd27842deebe42f818240..27e31c9e7e62fcd9d28b649ad1421a41eccffda9 100644 --- a/salamander-app/App.js +++ b/salamander-app/App.js @@ -1,11 +1,13 @@ import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; +import MyButton from './components/MyButton'; export default function App() { return ( <View style={styles.container}> - <Text>Open up App.js to start working on your app!</Text> + <Text>Test</Text> + <MyButton /> <StatusBar style="auto" /> </View> ); diff --git a/salamander-app/components/MyButton.js b/salamander-app/components/MyButton.js new file mode 100644 index 0000000000000000000000000000000000000000..47b1986aa966f0c4c824b9c6e1af09acb97464ad --- /dev/null +++ b/salamander-app/components/MyButton.js @@ -0,0 +1,10 @@ +import * as React from 'react'; +import { Button } from 'react-native-paper'; + +const MyButton = () => ( + <Button icon="camera" mode="contained" onPress={() => console.log('Pressed')}> + Press me + </Button> +); + +export default MyButton; \ No newline at end of file