簡體   English   中英

Expo 應用程序卡在 IOS 的初始屏幕上

[英]Expo App is stuck on splash screen for IOS

I have a react-native built with Expo that is already on the Google play store, Runs perfectly well in the Expo Go app both on IOS and Android.

在將相同的應用程序推送到我的 Apple 開發人員帳戶並使用 TestFlight 進行測試后,它不會 go 超過初始屏幕。 下面是我的 package.json 文件


{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@eva-design/eva": "^2.1.1",
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-community/datetimepicker": "6.1.2",
    "@react-native-community/masked-view": "0.1.10",
    "@react-navigation/bottom-tabs": "^6.0.4",
    "@react-navigation/drawer": "^6.1.3",
    "@react-navigation/native": "^6.0.2",
    "@react-navigation/stack": "^5.14.5",
    "@ui-kitten/components": "^5.1.1",
    "@ui-kitten/eva-icons": "^5.1.1",
    "apisauce": "^2.1.1",
    "expo": "^45.0.0",
    "expo-cli": "^6.0.1",
    "expo-status-bar": "~1.3.0",
    "expo-updates": "~0.13.3",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-native": "0.68.2",
    "react-native-gesture-handler": "~2.2.1",
    "react-native-modal-datetime-picker": "^11.0.0",
    "react-native-reanimated": "~2.8.0",
    "react-native-safe-area-context": "4.2.4",
    "react-native-safe-area-view": "^1.1.1",
    "react-native-screens": "~3.11.1",
    "react-native-svg": "12.3.0",
    "react-native-web": "0.17.7"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
  "private": true
}

經過多次故障排除后,以下步驟有助於解決問題:

  1. 升級的 NodeJS。
  2. 刪除了 node_modules 文件夾。
  3. yarn install

我做了所有這些,然后重建了應用程序,在 Testflight 上對其進行了測試,它按預期工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM