📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials React Modern Development React Native Preview

React Native Preview

5 min read
React Native uses the same React concepts but renders to native mobile UI components. Start with Expo for the easiest setup. Use View, Text, and TouchableOpacity instead of div, p, and button HTML elements.

React Native — Mobile Apps

npx create-expo-app MyApp
cd MyApp && npx expo start

// Same React concepts, different components
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";

function App() {
  return (
    
      Hello Mobile!
       Alert.alert("Hi!")}>
        Tap me
      
    
  );
}