未处理的JS异常:getPropertyAsObject:属性'__fbRequireBatchedBridge' [英] Unhandled JS Exception: getPropertyAsObject: property '__fbRequireBatchedBridge'

查看:679
本文介绍了未处理的JS异常:getPropertyAsObject:属性'__fbRequireBatchedBridge'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在出现错误之后,我一直遇到错误,直到重新设置Metro Bundle并执行更新为止,错误从所需的模块"699"到"700"不断出现,现在是这样.我相信我具有Drawer导航器和ionicicons所需的所有依赖关系,但错误仍然持续存在.我有用不同文件编写的代码,但下面是用App.js编写的代码.随意询问其他问题,以解决眼前的问题.

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


  },
});

推荐答案

对于Mac,

我有此错误,我相信您已经npm install/yarn添加了一个新软件包,您将需要 Ctrl + C 退出Metro Bundler并再次重新启动.错误/问题将得到解决.

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.

这篇关于未处理的JS异常:getPropertyAsObject:属性'__fbRequireBatchedBridge'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆