Loading...
Loading...
React Native cross-platform mobile with JavaScript. Use for iOS/Android.
npx skill4agent add g1joshi/agent-skills react-nativenpx create-expo-app@latest my-app
cd my-app
npx expo start// app/index.tsx (Expo Router)
import { useState } from "react";
import { View, Text, Button, StyleSheet } from "react-native";
import { Link } from "expo-router";
export default function Home() {
const [count, setCount] = useState(0);
return (
<View style={styles.container}>
<Text style={styles.text}>Count: {count}</Text>
<Button title="Increment" onPress={() => setCount((c) => c + 1)} />
<Link href="/details" style={styles.link}>
Go to Details
</Link>
</View>
);
}
const styles = StyleSheet.create({
container: { flex: 1, justifyContent: "center", alignItems: "center" },
text: { fontSize: 24, marginBottom: 20 },
link: { marginTop: 20, color: "blue" },
});<View>UIViewandroid.view.View<Text>UITextViewTextViewflexDirection: 'column'expo-routerapp/index.tsxapp/(tabs)/_layout.tsxapp/[id].tsxTanStack QueryZustandFlatListconsole.log| Error | Cause | Solution |
|---|---|---|
| Port in use or bad cache. | |
| Import issues or upgrading RN versions. | Check node_modules, clear watchman. |
| iOS dependency conflict. | |
| Raw text directly inside View. | Wrap all strings in |