React Native β€” bu Meta tomonidan yaratilgan framework boβ€˜lib, JavaScript va TypeScript yordamida native mobil ilovalar yaratish imkonini beradi.

Expo esa React Native ustiga qurilgan ecosystem boβ€˜lib, development jarayonini tezlashtiradi.

ChatGPT Image Jun 26, 2026, 10_49_12 PM

Agar siz yangi boshlayotgan boβ€˜lsangiz yoki professional darajaga chiqmoqchi boβ€˜lsangiz, quyidagi stack juda muhim:

⚑ React Native ⚑ Expo ⚑ TypeScript ⚑ Expo Router ⚑ React Navigation ⚑ Zustand ⚑ TanStack Query ⚑ NativeWind ⚑ Reanimated ⚑ Firebase ⚑ Node.js backend

━━━━━━━━━━━━━━━━━━

πŸ“± Expo Go nima?

Expo Go β€” bu telefoningizda React Native loyihangizni tez test qilish uchun ishlatiladigan ilova.

Siz:

  1. Kompyuterda loyiha ochasiz
  2. Expo server ishga tushadi
  3. QR code chiqadi
  4. Telefon orqali scan qilasiz
  5. Ilova ochiladi

Boshlash:

bash
npx create-expo-app my-project

Papka ichiga kirish:

bash
cd my-project

Ishga tushirish:

bash
npx expo start

Keyin telefon:

Expo Go β†’ Scan QR β†’ App ishlaydi

━━━━━━━━━━━━━━━━━━

πŸ“¦ Expo loyihasining asosiy strukturasi:

my-project app/ β”œβ”€β”€ index.tsx β”œβ”€β”€ profile.tsx └── settings.tsx components/ β”œβ”€β”€ Button.tsx └── Card.tsx hooks/ lib/ assets/ package.json

Zamonaviy Expo loyihalarda Expo Router ishlatiladi.

Misol:

app/index.tsx

bu:

/

route boβ€˜ladi.

app/profile.tsx

bu:

/profile

boβ€˜ladi.

━━━━━━━━━━━━━━━━━━

🎨 UI yaratish

React Native HTML emas.

Web:

html
<div>
<h1>Hello</h1>
</div>

React Native:

tsx
<View>

<Text>
Hello
</Text>

</View>

Asosiy komponentlar:

View

Container uchun:

tsx
<View>

</View>

Text

Matn:

tsx
<Text>
UlugDev
</Text>

Image:

tsx
<Image
 source={{
 uri:"https://image.com/photo.png"
 }}
/>

Button:

tsx
<Button
 title="Click"
/>

━━━━━━━━━━━━━━━━━━

🎨 Styling

React Native CSS emas.

Misol:

tsx
<View
style={{
 backgroundColor:"#000",
 padding:20,
 borderRadius:20
}}
>

<Text
style={{
 color:"#fff",
 fontSize:24
}}
>
Hello
</Text>

</View>

Ammo professional loyihalarda:

NativeWind ishlatiladi.

Oβ€˜rnatish:

bash
npm install nativewind

Ishlatish:

tsx
<View className="flex-1 bg-black">

<Text className="text-white text-xl">

UlugDev

</Text>

</View>

━━━━━━━━━━━━━━━━━━

🧭 Navigation

Mobil ilovalarda eng muhim qism.

Masalan:

Home

↓

Profile

↓

Settings

React Navigation:

bash
npm install
@react-navigation/native

Stack:

tsx
<Stack.Navigator>

<Stack.Screen
name="Home"
component={Home}
/>


<Stack.Screen
name="Profile"
component={Profile}
/>


</Stack.Navigator>

Oβ€˜tish:

tsx
navigation.navigate(
"Profile"
)

━━━━━━━━━━━━━━━━━━

πŸ“‚ Expo Router

Yangi standart:

bash
npx expo install expo-router

Misol:

app (index).tsx profile.tsx settings.tsx

Link:

tsx
<Link href="/profile">

Profile

</Link>

Bu Next.js App Router ga oβ€˜xshaydi.

━━━━━━━━━━━━━━━━━━

πŸ’Ύ Local Storage

User ma'lumotlarini saqlash:

bash
npx expo install
@react-native-async-storage/async-storage

Saqlash:

tsx
await AsyncStorage.setItem(
"user",
JSON.stringify(user)
)

Olish:

tsx
const data =
await AsyncStorage.getItem(
"user"
)

Masalan:

Login qilgan user:

{ id:1, name:"Ulugbek" }

telefon xotirasida saqlanadi.

━━━━━━━━━━━━━━━━━━

πŸ” Secure Storage

Token uchun oddiy storage ishlatmang.

Expo SecureStore:

bash
npx expo install
expo-secure-store

Token:

tsx
await SecureStore.setItemAsync(
"token",
jwt
)

Keyin:

tsx
const token =
await SecureStore.getItemAsync(
"token"
)

━━━━━━━━━━━━━━━━━━

πŸ“‘ API bilan ishlash

Professional app backend bilan ishlaydi.

Axios:

bash
npm install axios

API:

tsx
const response =
await axios.get(
"https://api.com/users"
)

POST:

tsx
axios.post(
"/login",
{
email,
password
}
)

━━━━━━━━━━━━━━━━━━

⚑ TanStack Query

Server state uchun.

bash
npm install
@tanstack/react-query

Misol:

tsx
useQuery({

queryKey:["users"],

queryFn:getUsers

})

Afzalligi:

βœ… cache

βœ… loading

βœ… error

βœ… refetch

━━━━━━━━━━━━━━━━━━

Davomi tez kunda :

πŸ”₯ React Native architecture πŸ”₯ Zustand state management πŸ”₯ Authentication πŸ”₯ Firebase realtime chat πŸ”₯ Image upload πŸ”₯ Push notification πŸ”₯ App Store / Play Store release πŸ”₯ Production project structure

#ReactNative #Expo #MobileDevelopment #TypeScript #Frontend #Developer