相关疑难解决方法(0)

如何在android上使用离线包来反应原生项目?

如何在android上使用离线捆绑?
我没有在android上看到关于使用offline bundle的文档.
我试图取消注释build.gradle中的代码.

project.ext.react = [
        // the name of the generated asset file containing your JS bundle
    bundleAssetName: "index.android.bundle",

    // the entry file for bundle generation
    entryFile: "index.android.js",

    // whether to bundle JS and assets in debug mode
    bundleInDebug: false,

    // whether to bundle JS and assets in release mode
    bundleInRelease: true,

    // the root of your project, i.e. where "package.json" lives
    root: "../../",

    // where to put the JS bundle asset in debug mode
    jsBundleDirDebug: "$buildDir/intermediates/assets/debug",

    // …
Run Code Online (Sandbox Code Playgroud)

android react-native

39
推荐指数
4
解决办法
4万
查看次数

react-native iOS应用程序在部署后不显示静态资产(图像)

我将所有静态图像放在项目根目录中名为"images"的文件夹中.但是,在我运行以下命令捆绑我的应用程序后,该应用程序可以正常工作,但没有显示图像.

我用来捆绑的命令:

./react-native bundle --minify --entry-file index.ios.js --platform ios --dev false --bundle-output main.jsbundle --assets-dest ./assets
Run Code Online (Sandbox Code Playgroud)

请注意,资源文件夹已创建,它包含我的图像文件夹,所有图像都可以.

你能帮帮忙吗?

deployment ios react-native

11
推荐指数
5
解决办法
1万
查看次数

标签 统计

react-native ×2

android ×1

deployment ×1

ios ×1