如何在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) 有没有办法通过javascript代码获得react-native`s版本?像这样的东西
import {
Platform
} from 'react-native';
let version = Platform.version;
Run Code Online (Sandbox Code Playgroud)