Created
September 13, 2024 15:23
-
-
Save lloydchang/ad52e1d28c64b9b21a59101371bf3f02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Text, SafeAreaView, StyleSheet } from 'react-native'; | |
// You can import supported modules from npm | |
import { Card } from 'react-native-paper'; | |
// or any files within the Snack | |
import AssetExample from './components/AssetExample'; | |
export default function App() { | |
return ( | |
<SafeAreaView style={styles.container}> | |
<Text style={styles.paragraph}> | |
Change code in the editor and watch it change on your phone! Save to get a shareable url. | |
</Text> | |
<Card> | |
<AssetExample /> | |
</Card> | |
</SafeAreaView> | |
); | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
justifyContent: 'center', | |
backgroundColor: '#ecf0f1', | |
padding: 8, | |
}, | |
paragraph: { | |
margin: 24, | |
fontSize: 18, | |
fontWeight: 'bold', | |
textAlign: 'center', | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment