I built native Android apps for years before moving to backend. Native is a big investment when you don’t yet know what works: every feature has to be built and maintained per platform, just when you most need to iterate quickly and find product-market fit. When we started building Learnvoro, we could reuse the rendering engine we’d already written for the web app. And that’s why I decided to build my first React Native app now. You can check it out on Google Play.
If you know React for the web, React Native feels familiar for about ten minutes. Components, props, state and hooks all work the way you expect. Then you put a sentence inside a View, the app stops with a red error screen, and you realise the platform underneath is different.
Here are the seven differences that catch web developers on their first screen, and one file that puts them together.
TL;DR
- Get the app on your phone first with Expo: no Xcode or Android Studio to start.
- There’s no DOM.
Viewreplacesdiv, and every string must sit insideText. - Touch uses
PressableandonPress, notonClick. - Styles are plain objects with no cascade, and sizes are unitless numbers.
- Flexbox stacks children in a column by default.
1. Get it running on your phone before you write anything
Native mobile development used to start with installing Xcode and Android Studio. Expo removes that step: you need Node.js on your computer and the free Expo Go app on your phone. On an iPhone you also need a free Expo account: run npx expo login on your computer and sign in to Expo Go with the same account.
npx create-expo-app@latest my-app –template blank cd my-app npx expo start
The blank template gives you a single App.js component to start from. Without it, you get Expo’s default template, which adds file-based routing with Expo Router and TypeScript: a better start for a real app, but more to read on day one.
npx expo start starts Metro, the bundler that packages your JavaScript and serves it to the device. Scan the QR code in your terminal with your phone, and Expo Go loads the app. Your computer and phone need to be on the same network. On an office or café network that keeps devices apart, npx expo start --tunnel connects them through the internet instead. It runs through ngrok, so reloads are slower that way.
2. There’s no DOM
React Native doesn’t render HTML. Its components map to real native views on iOS and Android. There’s no div, span or p, and no document to query. View is your container.
3. Every string goes inside Text
This is the first error most web developers hit:
<View>Hello</View>
In development it stops with “Text strings must be rendered within a <Text> component.” On the web, text can sit anywhere. In React Native it has to be inside Text:
<View>
<Text>Hello</Text>
</View>
That also changes how font styles flow. A View can’t pass a font size down to the text inside it. Only a Text nested inside another Text inherits its styles.
4. onPress, not onClick
There’s no mouse and no click. Touch goes through components such as Pressable, which calls onPress and tells you while a finger is on it, so you can show feedback the moment someone taps. You’ll also see TouchableOpacity in many tutorials, and it still works. React Native’s docs describe Pressable as the more flexible, future-proof option.
5. Styles are objects, not a stylesheet
There are no CSS files and no cascade. Each component takes a style object, usually defined once with StyleSheet.create, and property names are camelCase: backgroundColor, not background-color.
Sizes are plain numbers: width: 280, not "280px". They’re density-independent pixels, so the same number looks about the same size on a low-resolution screen and a high-resolution one. Percentages still work as strings, such as width: '50%'.
6. Flexbox defaults to a column
Every View lays out its children with Flexbox, and they stack top to bottom unless you say otherwise. On the web, display: flex puts them in a row.
So the axes swap: justifyContent works vertically and alignItems horizontally, until you set flexDirection: 'row'. And flex: 1 makes a View grow to fill the free space along its parent’s main axis, which is why most screens start with one.
7. Saving a file updates the phone and keeps your state
Save App.js and Fast Refresh updates the app on your phone in place, keeping each component’s state. You can change a button’s padding without losing the count it was showing. Some edits, such as changes to a file that’s used outside your components, fall back to a full reload.
Putting it together
Here’s a profile card with a Like button: View for layout, Text for every string, Pressable for touch, styles as objects, and Flexbox centring the card on the screen.
import { useState } from 'react';
import { Pressable, StyleSheet, Text, View } from 'react-native';
export default function App() {
const [likes, setLikes] = useState(0);
return (
<View style={styles.screen}>
<View style={styles.card}>
<Text style={styles.name}>Elena</Text>
<Text style={styles.role}>Learning React Native</Text>
<Pressable
onPress={() => setLikes((n) => n + 1)}
style={({ pressed }) => [styles.button, pressed && styles.pressed]}
>
<Text style={styles.buttonText}>Like · {likes}</Text>
</Pressable>
</View>
</View>
);
}
const styles = StyleSheet.create({
screen: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#f4f5f7',
},
card: {
width: 280,
padding: 24,
borderRadius: 16,
backgroundColor: '#ffffff',
alignItems: 'center',
},
name: { fontSize: 20, fontWeight: '600' },
role: { fontSize: 14, color: '#666666', marginTop: 4 },
button: {
marginTop: 16,
paddingVertical: 10,
paddingHorizontal: 20,
borderRadius: 999,
backgroundColor: '#2a78d6',
},
pressed: { opacity: 0.7 },
buttonText: { color: '#ffffff', fontWeight: '600' },
});
Paste it into App.js while npx expo start is running, and the card appears on your phone. Tap Like and the count goes up. Change borderRadius and save: the corners change, and the count stays where it was.
Web to React Native cheat sheet
When Expo Go isn’t enough
Expo Go is a sandbox with a fixed set of native libraries built in. That covers a lot of learning and prototyping. When you need a native library it doesn’t include, you make a development build: your own version of Expo Go, with your project’s native code, installed on your device the same way.
