Thuta Learning
React Native
AdvancedMobile Developmentအလယ်အလတ်

Building & Publishing (EAS Build)

React Nativeသင်ခန်းစာ 2725 မိနစ်

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • Building & Publishing (EAS Build) ရဲ့ React နဲ့ native platform behavior ကိုရှင်းပြနိုင်ရန်
  • Accessibility, failure နဲ့ lifecycle cases စမ်းနိုင်ရန်
  • Maintainable, testable နဲ့ performant React Native code ရေးနိုင်ရန်

ရိုးရိုးလေး ရှင်းပြမယ်

Building & Publishing (EAS Build) ကို ရိုးရိုးလေးနားလည်မယ်

EAS (Expo Application Services) Build က cloud-based build service ဖြစ်ပြီး, developer local machine ပေါ်မှာ Xcode/Android Studio setup မလိုဘဲ standalone app file (.apk/.aab for Android, .ipa for iOS) ကို build ပေးပါတယ်။ App.json ထဲမှာ app name, icon, version, bundle identifier ကို configure ရပြီး, eas build --platform android (သို့) --platform ios command ဖြင့် build process ကို start လုပ်ပါတယ် — build ပြီးရင် download link ရရှိပါတယ်။

Problem → Why → Solution

ပြဿနာ — ဘာကြောင့် ဒီ concept လိုတာလဲ

App icon/splash screen ကို default Expo placeholder အတိုင်း ချန်ထားပြီး submit ကြိုးစားခြင်း — store review reject ခံရနိုင်

ဖြစ်လေ့ရှိတဲ့အမှား

Bundle identifier (com.company.appname) ကို app store account setup မတိုင်ခင် ဆုံးမဖြတ်ဘဲ ထားခြင်း — publish ချိန် conflict ဖြစ်နိုင်

Core Concept — အလုပ်လုပ်ပုံကိုနားလည်မယ်

Building & Publishing (EAS Build) ကို Debug build တစ်ခုတည်းဖြင့်မဆုံးဖြတ်ဘဲ release device ပေါ်တွင် startup, JS/UI frame rate, memory, network, crash recovery, permissions, signing နဲ့ store requirements ဖြင့်စစ်ပါ။ New Architecture compatibility နဲ့ dependency support ကို upgrade တိုင်းအတည်ပြုပါ။

Mental Model
  1. JavaScript state
  2. Native component + layout
  3. Android / iOS UI

Building & Publishing (EAS Build) ရဲ့ React နဲ့ native platform behavior ကိုရှင်းပြနိုင်ရန်

အဓိက Syntax / Pattern

bash
# Install EAS CLI
npm install -g eas-cli

# Login and configure
eas login
eas build:configure

# Build for Android (.aab for Play Store)
eas build --platform android

# Build for iOS (.ipa for App Store)
eas build --platform ios

Building & Publishing (EAS Build) ကို Debug build တစ်ခုတည်းဖြင့်မဆုံးဖြတ်ဘဲ release device ပေါ်တွင် startup, JS/UI frame rate, memory, network, crash recovery, permissions, signing နဲ့ store requirements ဖြင့်စစ်ပါ။ New Architecture compatibility နဲ့ dependency support ကို upgrade တိုင်းအတည်ပြုပါ။

Code ကို အဆင့်လိုက်ဖတ်မယ်

  1. JavaScript state# Install EAS CLI

    EAS (Expo Application Services) Build က cloud-based build service ဖြစ်ပြီး, developer local machine ပေါ်မှာ Xcode/Android Studio setup မလိုဘဲ standalone app file (.apk/.aab for Android, .ipa for iOS) ကို build ပေးပါတယ်။ App.json ထဲမှာ app name, icon, version, bundle identifier ကို configure ရပြီး, eas build --platform android (သို့) --platform ios command ဖြင့် build process ကို start လုပ်ပါတယ် — build ပြီးရင် download link ရရှိပါတယ်။

  2. Native component + layouteas build:configure

    Building & Publishing (EAS Build) ကို Debug build တစ်ခုတည်းဖြင့်မဆုံးဖြတ်ဘဲ release device ပေါ်တွင် startup, JS/UI frame rate, memory, network, crash recovery, permissions, signing နဲ့ store requirements ဖြင့်စစ်ပါ။ New Architecture compatibility နဲ့ dependency support ကို upgrade တိုင်းအတည်ပြုပါ။

  3. Android / iOS UIeas build --platform ios

    Building & Publishing (EAS Build) example ကို Android/iOS, small/large screens, font scaling, dark mode, keyboard, screen reader, slow/offline network, denied permissions နဲ့ app background/foreground cases ဖြင့်စမ်းပါ။ DevTools, tests နဲ့ release build ကိုလိုအပ်သလိုအသုံးပြုပါ။

Execution Flow
  1. JavaScript state
  2. Native component + layout
  3. Android / iOS UI

Success

Building & Publishing (EAS Build) ရဲ့ React နဲ့ native platform behavior ကိုရှင်းပြနိုင်ရန်

Failure

App icon/splash screen ကို default Expo placeholder အတိုင်း ချန်ထားပြီး submit ကြိုးစားခြင်း — store review reject ခံရနိုင်

ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်

EAS (Expo Application Services) Build က cloud-based build service ဖြစ်ပြီး, developer local machine ပေါ်မှာ Xcode/Android Studio setup မလိုဘဲ standalone app file (.apk/.aab for Android, .ipa for iOS) ကို build ပေးပါတယ်။ App.json ထဲမှာ app name, icon, version, bundle identifier ကို configure ရပြီး, eas build --platform android (သို့) --platform ios command ဖြင့် build process ကို start လုပ်ပါတယ် — build ပြီးရင် download link ရရှိပါတယ်။

လက်တွေ့ scenario နဲ့ ချိတ်ကြည့်မယ်

Play Store (Android) ဆီ တင်ချင်ရင် Google Play Console account ($25 one-time fee), App Store (iOS) ဆီ တင်ချင်ရင် Apple Developer Program account (နှစ်စဉ် $99) လိုအပ်ပါတယ် — ဒါက app-store-specific requirement ဖြစ်ပြီး, code writing skill ကနေ လွတ်ကင်းတဲ့ business/administrative step ပါ။ App icon, splash screen, privacy policy URL, screenshot များကို app.json/store listing ထဲ ပြင်ဆင်ထားရပါတယ်။

Code နမူနာ

bash
# Install EAS CLI
npm install -g eas-cli

# Login and configure
eas login
eas build:configure

# Build for Android (.aab for Play Store)
eas build --platform android

# Build for iOS (.ipa for App Store)
eas build --platform ios
You should see
Build process ပြီးရင် download link (သို့) app store submission-ready file တစ်ခု ရရှိမည်။

၅ မိနစ် စမ်းကြည့်

app.json ထဲက name, slug, icon, version field များကို ဖတ်ကြည့်ပြီး ကိုယ်ပိုင် project အတွက် ဘယ်လို ပြင်ဆင်မလဲ list ချကြည့်ပါ (build ကို တကယ် run စရာမလို)။

သတိလေးတစ်ချက်

App Store/Play Store review process က ရက်အနည်းငယ် ကြာနိုင်ပြီး, privacy policy, permission justification (ဘာကြောင့် camera/location လိုအပ်တာလဲ) ကို တိကျစွာ ဖော်ပြထားရပါမယ် — မပြည့်စုံရင် reject ခံနိုင်ပါတယ်။

Real-world usage

လက်တွေ့ Project မှာ ဘယ်လိုသုံးမလဲ

Building & Publishing (EAS Build) example ကို Android/iOS, small/large screens, font scaling, dark mode, keyboard, screen reader, slow/offline network, denied permissions နဲ့ app background/foreground cases ဖြင့်စမ်းပါ။ DevTools, tests နဲ့ release build ကိုလိုအပ်သလိုအသုံးပြုပါ။

Mini challenge

ကိုယ်တိုင်တည်ဆောက်ကြည့်ပါ

Building & Publishing (EAS Build) example ကို Android/iOS, small/large screens, font scaling, dark mode, keyboard, screen reader, slow/offline network, denied permissions နဲ့ app background/foreground cases ဖြင့်စမ်းပါ။ DevTools, tests နဲ့ release build ကိုလိုအပ်သလိုအသုံးပြုပါ။

  • Example ကို copy မလုပ်ဘဲ ပြန်ရေးပါ
  • Normal input နဲ့ edge case စမ်းပါ
  • Run မလုပ်မီ compiler/output result ကိုခန့်မှန်းပါ
bash
# Install EAS CLI
npm install -g eas-cli

# Login and configure
eas login
eas build:configure

# Build for Android (.aab for Play Store)
eas build --platform android

# Build for iOS (.ipa for App Store)
eas build --platform ios

ရလဒ်: Building & Publishing (EAS Build) ရဲ့ React နဲ့ native platform behavior ကိုရှင်းပြနိုင်ရန်

အရိပ်အမြွက် ကြည့်ရန်

Building & Publishing (EAS Build) example ကို Android/iOS, small/large screens, font scaling, dark mode, keyboard, screen reader, slow/offline network, denied permissions နဲ့ app background/foreground cases ဖြင့်စမ်းပါ။ DevTools, tests နဲ့ release build ကိုလိုအပ်သလိုအသုံးပြုပါ။

Quick Quiz 1 / 3

Building & Publishing (EAS Build) ရဲ့ အဓိကသဘောတရားက ဘာလဲ။

Quick Quiz 2 / 3

ဘယ်အမှားကို အရင်ဆုံးရှောင်သင့်လဲ။

Quick Quiz 3 / 3

Real project မှာ ဘယ်လိုအသုံးချသင့်လဲ။

ဒီသင်ခန်းစာမှာ မှတ်ထားရမယ့်အချက်များ

  • JavaScript state → Native component + layout → Android / iOS UI
  • Building & Publishing (EAS Build) ကို Debug build တစ်ခုတည်းဖြင့်မဆုံးဖြတ်ဘဲ release device ပေါ်တွင် startup, JS/UI frame rate, memory, network, crash recovery, permissions, signing နဲ့ store requirements ဖြင့်စစ်ပါ။ New Architecture compatibility နဲ့ dependency support ကို upgrade တိုင်းအတည်ပြုပါ။
  • App icon/splash screen ကို default Expo placeholder အတိုင်း ချန်ထားပြီး submit ကြိုးစားခြင်း — store review reject ခံရနိုင်
  • Building & Publishing (EAS Build) example ကို Android/iOS, small/large screens, font scaling, dark mode, keyboard, screen reader, slow/offline network, denied permissions နဲ့ app background/foreground cases ဖြင့်စမ်းပါ။ DevTools, tests နဲ့ release build ကိုလိုအပ်သလိုအသုံးပြုပါ။

EAS Build Introduction — Expo

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • App icon/splash screen ကို default Expo placeholder အတိုင်း ချန်ထားပြီး submit ကြိုးစားခြင်း — store review reject ခံရနိုင်
  • Bundle identifier (com.company.appname) ကို app store account setup မတိုင်ခင် ဆုံးမဖြတ်ဘဲ ထားခြင်း — publish ချိန် conflict ဖြစ်နိုင်
  • Simulator တစ်ခု၏ happy path မှန်ရုံဖြင့် real devices, release builds, permissions, accessibility, offline နဲ့ lifecycle paths အားလုံးမှန်ပြီဟုယူဆခြင်း။

လက်တွေ့လေ့ကျင့်ခန်း

Building & Publishing (EAS Build) example ကို Android/iOS, small/large screens, font scaling, dark mode, keyboard, screen reader, slow/offline network, denied permissions နဲ့ app background/foreground cases ဖြင့်စမ်းပါ။ DevTools, tests နဲ့ release build ကိုလိုအပ်သလိုအသုံးပြုပါ။

အလုပ်ဖြစ်ကြောင်း ဒီလိုသိမယ်: Build process ပြီးရင် download link (သို့) app store submission-ready file တစ်ခု ရရှိမည်။

နောက်ဆုံးပြင်ဆင်ရက်

Progress ကို ဤ browser (ဤစက်) တွင်သာ သိမ်းထားပါသည်။ အခြားစက်များနှင့် sync မလုပ်ပါ။

ဤသင်ခန်းစာတွင် အမှားတွေ့ပါက အကြောင်းကြားရန်သင့် email app ကို ဤသင်ခန်းစာလိပ်စာ ဖြည့်ပြီးသားဖြင့် ဖွင့်ပေးပါမည် — သင်ကိုယ်တိုင် ပို့မှသာ ပို့မည်ဖြစ်သည်။

Building & Publishing (EAS Build) | Thuta Learning