我正在尝试通过(testflight)运行该应用程序。上传进展顺利,但是当我在Testflight上下载应用程序并打开它时,它似乎卡在了启动画面上(等待了一个多小时,但没有运气)。
当我在那儿发布应用程序并用expo应用程序扫描/打开它时,该应用程序似乎可以在expo.io上运行。
在下面附加我的app.js和app.json。
{
"expo": {
"name": "APPNAME",
"slug": "APPNAME",
"privacy": "public",
"sdkVersion": "33.0.0",
"platforms": ["ios", "android", "web"],
"version": "1.0.3",
"orientation": "portrait",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"bundleIdentifier": "com.APPNAME.iosapp"
},
"android": {
"package": "com.APPNAME.android"
}
}
}
App.js
import { AppLoading } from "expo"
import { Asset } from "expo-asset"
import * as Font from "expo-font"
import React from "react"
import { Ionicons } from "@expo/vector-icons"
import { Provider } from "react-redux"
import store from "./store"
import Root from "./Root.js"
import { YellowBox } from "react-native"
import AppNavigator from "./navigation/AppNavigator"
YellowBox.ignoreWarnings(["Remote debugger"])
export default class App extends React.Component {
constructor(props) {
super(props)
this.state = { isReady: false }
}
async loadResourcesAsync() {
await Promise.all([
Asset.loadAsync([
require("./assets/images/robot-dev.png"),
require("./assets/images/robot-prod.png")
]),
Font.loadAsync({
// This is the font that we are using for our tab bar
...Ionicons.font,
"Rubik-medium": require("./assets/fonts/Rubik-Medium.ttf"),
"Rubik-regular": require("./assets/fonts/Rubik-Regular.ttf"),
"Rubik-light": require("./assets/fonts/Rubik-Light.ttf"),
geo: require("./assets/fonts/geogrotesque.ttf")
})
])
}
render() {
if (!this.state.isReady) {
return (
<AppLoading
startAsync={this.loadResourcesAsync}
onError={error => console.warn(error)}
onFinish={() => this.setState({ isReady: true })}
/>
)
}
return (
<Provider store={store}>
<AppNavigator />
</Provider>
)
}
}
任何建议,谢谢。
答案 0 :(得分:1)
将SDK版本降级为29.0.0将解决您的问题。但这只是临时解决方法。希望在即将发布的SDK版本中解决该问题。