π§ Template Structure
Let's get our hands dirty and start making changes to the default starter Expo App!
Folder Structure
first-app/
βββ .expo/
βββ .expo-shared/
βββ assets/
βββ node_modules/
βββ .gitignore
βββ App.js
βββ app.json
βββ babel.config.js
βββ package.json
βββ yarn.lockimport React, {useState} from 'react';
import {StatusBar} from 'expo-status-bar';
import {StyleSheet, View, Text, Button} from 'react-native';
const App = () => {
const [text, setText] = useState('Hello React Native!');
return (
<View className={styles.container}>
<Text>{text}</Text>
<Button title="Change Text" onPress={() => setText('So cool, right?')}/>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
export default App;React Native apps are hard work!

Last updated