ExpoAdvanced
Splash screen নিয়ন্ত্রণ ও expo-updates
launch hide timing ও OTA update-এর প্রস্তুতি।
6টি অংশবাংলা ভাষায়
Asset (font/image) লোড শেষ না হওয়া পর্যন্ত splash দেখান — `expo-splash-screen`:
import * as SplashScreen from "expo-splash-screen";
import { useFonts } from "expo-font";
SplashScreen.preventAutoHideAsync();
export default function RootLayout() {
const [fontsLoaded] = useFonts(FontMap);
if (fontsLoaded) {
SplashScreen.hideAsync();
}
return <Stack />;
}Android adaptive icon — android.adaptiveIcon.foregroundImage (safe-zone-এর ভিতরে) + backgroundColor।
OTA update — expo-updates দিয়ে JS আপডেট ইনস্টল ছাড়াই:
terminalbash
bash
npx expo install expo-updates
npx eas update --channel production --message "bugfix"runtime version
Native binary বদলে গেলে OTA update হবে না (runtime version mismatch) — native পরিবর্তন হলে store build দরকার। splash-এ crash এড়াতে _layout.tsx-এ try/catch।
শেষ প্যারায় নিজে practice করুন — কোড কপি করে নিজের এডিটরে চালিয়ে দেখুন।