Let's think about this for a moment
The entry point of an Expo project is App.js (or App.tsx), which default-exports a React component function — the structure is basically the same as a React web app's App.js. Inside the component you return JSX, and the root element needs to be wrapped in a <View> (just like wrapping in a <div> on React web).
Let's connect this to a real scenario
If you rewrite the line <Text>Open up App.js to start working on your app!</Text> in App.js with your own message and save, the Expo Go app on your phone will hot reload and update instantly — you'll get to experience that fast save-and-see iteration loop.
Code Example
import { View, Text, StyleSheet } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text>ကျွန်တော့် ပထမဆုံး React Native app!</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});The message 'My first React Native app!' appears centered on your phone screen.5-Minute Try-It
Rewrite the Text message in App.js with your own words, save, and watch it update on your phone.
A Quick Heads-Up
In React Native, text (strings) must be written inside a <Text> component — putting a string directly inside a <View> will throw an error. There's no free-floating text like in HTML.