React Nativeに入門する
実機ですすめる
とは言え、AndroidSDKはどこかで必要にはなりそう。
エミュレータですすめる
PS C:\Users\lbfde> npx react-native init HelloWorldApp
npm ERR! cb.apply is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lbfde\AppData\Roaming\npm-cache\_logs\2023-01-14T03_15_51_067Z-debug.log
と怒られるので、npm install -g react-native@latest を実行
npx react-native init InitialApp が成功
↓
✔ Downloading template
✔ Copying template
✔ Processing template
✔ Installing dependencies
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "C:\Users\lbfde\react-native\InitialApp" && npx react-native run-android
Run instructions for Windows:
npx react-native run-android でエラー。choco install -y microsoft-openjdk11 を実行
JAVA_HOMEのパスは、 C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot 。MUST
名前:Pixel 5 API 31for react native
Links
PS C:\Users\lbfde\react-native> npx create-expo-app BookBark でプロジェクト作成
npx expo install expo-barcode-scanner と npx expo install expo-permissions でいれた
↑で実際にバーコードの数字読み取れたからできそうではある
https://scrapbox.io/files/63c2e3393fe551001da90a6b.png
かなり良さそう