Skip to content

Instantly share code, notes, and snippets.

@lloydchang
Created September 13, 2024 14:33
Show Gist options
  • Save lloydchang/f8a3209286f0a724924fb264155b2dbd to your computer and use it in GitHub Desktop.
Save lloydchang/f8a3209286f0a724924fb264155b2dbd to your computer and use it in GitHub Desktop.
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