Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unhandled JS Exception: getPropertyAsObject: property '__fbRequireBatchedBridge'

I've been having errors after errors to the point where I've reset my Metro Bundle and performed updates, errors from required module "699" to "700" have been coming up and now this. I believe I have all the required dependencies for Drawer navigator and ionicicons but errors continue to persist. I have code written in different files but below is the one written in App.js. Feel free to ask for the other ones in order to solve the issue at hand.

import React from 'react';
import {
  View,
  Text,
  StyleSheet

} from "react-native" ;

import  DrawerNavigator  from './Menu/DrawerNavigator';
import SettingScreen from './Menu/SettingScreen'

export default class App extends React.Component {

  render(){

    return (
<View style ={style.container}>
  <SettingScreen/>
  </View>


    );
  }
}


style = StyleSheet.create ({

  container: {
    flex: 1,
    justifyContent: 'center',


  },
});
like image 291
Camille Basbous Avatar asked Feb 12 '19 23:02

Camille Basbous


3 Answers

For mac,

I have this error, I believe that you have npm install/yarn add a new package and you will require to Ctrl+C to exit the Metro Bundler and restart again. The error/issue will be solved.

like image 153
Edwardyao Avatar answered Nov 09 '22 08:11

Edwardyao


For Windows,

I got the same error, what I did is

  1. close your local-cli windows(picture attached)
  2. uninstall the app from your device/emulator(there can be two apps with the slight change name of theirs).
  3. run again the with react native command like 'react-native run-android'
  4. I tried to reproduce it after these steps but I wasn't able

    enter image description here

like image 1
Irshad Babar Avatar answered Nov 09 '22 07:11

Irshad Babar


For Windows 10: Restarting the Metro Bundler by pressing ctrl + c and then expo start will fix this issue.

like image 1
Saad Zafar Avatar answered Nov 09 '22 07:11

Saad Zafar