React Native报错unddefined is not an object(evaluating ‘_reactnative.propTypes’)解决办法
来源:互联网 发布:mac 文件权限 编辑:程序博客网 时间:2024/05/22 00:23
报错截图
原程序是这样写的,然后一直出现错误,找不到PropTypes,
import React,{Component } from 'react';import { View, Text, Image, TouchableWithoutFeedback, PropTypes, StyleSheet} from 'react-native';
替换成下面的代码就可以成功解决错误。。
import React,{Component,PropTypes} from 'react';import { View, Text, Image, TouchableWithoutFeedback, //PropTypes, StyleSheet} from 'react-native';
阅读全文
0 0
- React Native报错unddefined is not an object(evaluating ‘_reactnative.propTypes’)解决办法
- react-native-baidu-map undefined is not an object(evaluting 'a.PropTypes.bool')
- React Native开发坑之null is not an object (evaluating 'inst.componentWillReceiveProps')
- 运行React Native示例出现null is not an object (evaluating 'this.state.text')
- React Native 出现undefined is not an object (evaluating 'this.props.navigator')
- React-Native 0.43.4 undefined is not an object (evaluating '_props[registrationName]') 正确的解决姿势
- React-native:Undefined is not an object
- ReactNative报错:undefined is not an object(evaluating 'RCTCameraRollManager.getPhotos')
- React-Native之undefined is not an object
- React Native 报PropTypes 问题
- 【ReactNative】undefined is not an object(evaluating 'this.props.navigator')
- undefined is not an object(evaluating 'this._component.getScrollableNode')
- undefined is not an object (evaluating 'this.props.navigator.push')
- undefined is not an object (evaluating 'dataSource.rowIdentities')
- [ReactNative]undefined is not an object (evaluating 'ImagePickerManager.showImagePicker')
- React Native ListView的Item设置点击事件时null is not an object
- 《React-Native系列》17、 RN中this所引起的undefined is not an object错误
- 《React-Native系列》17、 RN中this所引起的undefined is not an object错误
- 【kubernetes/k8s源码分析】kubelet源码分析-statusManager与probeManager
- Apache Common-pool2对象池分析和应用
- Android 加载 自己的H5,跳到内部浏览器
- python实现杨辉三角
- zigbee单播、组播、广播
- React Native报错unddefined is not an object(evaluating ‘_reactnative.propTypes’)解决办法
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for propert
- spring boot eurka+ribbon+zuul实现负载均衡
- 关于Solidworks实体测量
- caffe:使用C++来提取任意一张图片的特征
- 小说生成对抗网络GANs
- gym/101149/ Of Zorcs and Axes set<pair<int, int > > it->second; it = s.lower_bound( make_pair(u[
- 3.5动态添加菜单项
- 关于浏览器右键禁用事件,浏览器采用自己的右键事件。