出现undefi'ned is not an object(evaluating'_reactNative2.default.PropTypes.bool



  • 已解决!!

    用 import MapView from ‘react-native-baidumap' 的时候 就 报了这个错 有那位大神遇到过啊 帮帮啊



  • 把 react-native-baidumap 里的index.js 文件 里的

    import React from 'react-native';

    let {
    EdgeInsetsPropType,
    Image,
    NativeMethodsMixin,
    Platform,
    requireNativeComponent,
    StyleSheet,
    View,
    UIManager,
    processColor,
    ColorPropType,
    } = React;

    改成

    import React from 'react';
    import {
    EdgeInsetsPropType,
    Image,
    NativeMethodsMixin,
    Platform,
    requireNativeComponent,
    StyleSheet,
    View,
    UIManager,
    processColor,
    ColorPropType,
    } from 'react-native' 试试看!祝你好运


登录后回复