【发布时间】:2019-01-13 10:13:17
【问题描述】:
我已经用 react-native 和 expo 构建了一个应用程序。将它安装在我的 Android-TV 和 Android-TV 模拟器上。
当我通过 ES 文件资源管理器应用程序运行该应用程序时,它可以工作,但是当我尝试通过在 Android-TV 应用程序部分单击它来定期运行它时,我得到一个恒定的白屏。
通过 $exp build:android 使用 expo 构建 apk。 App.json 代码:
{
"expo": {
"name": "CommuniTV",
"description": "The future of watching TV is here!",
"slug": "CommuniTV",
"privacy": "public",
"sdkVersion": "26.0.0",
"platforms": ["ios", "android"],
"version": "1.0.4",
"orientation": "landscape",
"entryPoint": "./App.js",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"package": "project.communiTV.com",
"versionCode": 104,
"permissions": [],
"icon": "./AppIcon.png",
"adaptiveIcon": {
"foregroundImage": "./launcherIcon.png" // size is 1024x1024
}
}
}
}
在网上找不到任何解决方案,我被卡住了。
有什么建议吗? First screenshot - I click here I get a white screen
Second screenshot - I'll start it from here the App works fine
【问题讨论】:
标签: android react-native expo android-tv