Closed alexcbz closed 6 years ago
+1 I'm also struggling with this issue ...
I resolved this issue by changing index.js
file react-native-cli created to index.ios.js
and index.android.js
.
https://stackoverflow.com/questions/48014303/batchedbridge-error-in-react-native-on-ios
same issue when using woo commerce API
I had a same issue, then I did: rm -rf node_modules npm install and restarted the metro (npm start). It worked.
Issue Description
I am getting the following error when trying to build the app in Android Emulator.
Steps to Reproduce / Code Snippets / Screenshots
This is my Android configuration for React Native Navigation V2.
include ':app' include ':react-native-navigation' project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/lib/android/app/')
apply plugin: "com.android.application"
import com.android.build.OutputFile
project.ext.react = [ root : "../../", entryFile: "index.android.js" ]
apply from: "../../node_modules/react-native/react.gradle"
def enableSeparateBuildPerCPUArchitecture = false
/**
android { compileSdkVersion 25 // buildToolsVersion "23.0.1"
}
dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'com.android.support:design:25.4.0' implementation "com.android.support:appcompat-v7:25.4.0" implementation "com.facebook.react:react-native:+" // From node_modules implementation project(':react-native-navigation') }
// Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' }
package com.myapplication;
import com.reactnativenavigation.*;
public class MainActivity extends NavigationActivity { }
package com.myapplication;
import android.support.annotation.*;
import com.facebook.react.; import com.reactnativenavigation.;
import java.util.*;
public class MainApplication extends NavigationApplication {
}