Unhandled JS Exception: getPropertyAsObject: property '__fbRequireBatchedBridge'
Asked Answered
A

3

11

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',


  },
});
Acidify answered 12/2, 2019 at 23:2 Comment(0)
E
11

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.

Erbe answered 16/6, 2019 at 19:14 Comment(0)
S
1

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

Saltus answered 11/3, 2019 at 2:39 Comment(0)
F
1

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

Ferromanganese answered 19/7, 2019 at 14:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.