Requirement of Unknown ReactPerf Module for React Native Integration with Existing Android Application

I am trying to integrate the latest React Native build and I am encountering errors. Here is my project setup:

In app build.gradle, I import reaction-native 0.24.1:

dependencies {
  ...
  compile 'com.facebook.react:react-native:0.24.1'
}

The build.gradle project points to React Native, which is located in the Git submodule:

allprojects {
    repositories {
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$projectDir/../MyGitSubmodule/AwesomeProject/node_modules/react-native/android"
        }
    }
}

Otherwise, I integrated as described in the docs here and updated RN in the Git submodule as described in the docs here . I uploaded a stack trace to this pastebin link . To summarize the stack trace, since formatting is hard to read, these are the main points:

  • com.facebook.react.views.text.ReactVirtualTextViewManager - . , .
  • : "ReactPerf". , , "npm install"
  • JS: : "23",
  • Got JS Exception: ReferenceError: : __fbBatchedBridge
  • , - ": " 8 ", "
+4
1

, , ReactPerf, .

FYI, ReactPerf module: https://www.npmjs.com/package/react-addons-perf.

, , -native, .

, , :

npm install react-addons-perf, "" react-native. , , , react-addons-perf react.

, "" - . :

node_modules/react-native/package.json.

...
"dependencies": {
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"babel-core": "~6.4.5",
"babel-plugin-external-helpers": "~6.4.0",
...
"react": "^0.14.5"
...
}

, react-addons-perf .

...
"dependencies": {
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"babel-core": "~6.4.5",
"babel-plugin-external-helpers": "~6.4.0",
...
"react": "^0.14.5",
"react-addons-perf": "^0.14.5", // ADD THIS LINE FOR ReactPerf module
...
}

npm install.

, , Requiring module "8", .

, , .

0

All Articles