简体   繁体   English

在将本机版本更新到 0.59.4 后,undefined 不是评估 (_reactnative.Modal.propTypes.animationType) 的对象

[英]undefined is not an object evaluating (_reactnative.Modal.propTypes.animationType) after updating react native version to 0.59.4

i have updated react native version from 0.55 to 0.59 and facing an serious issue and tried everything but nothing works.It is giving me error that我已将 React Native 版本从 0.55 更新到 0.59 并面临严重问题并尝试了所有方法但没有任何效果。它给了我错误

undefined is not an object evaluating (_reactnative.Modal.propTypes.animationType) 

Here is my package.json这是我的 package.json

{
  "name": "Fuelex",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "native-base": "^2.12.1",
    "prop-types": "^15.7.2",
    "react": "16.8.3",
    "react-native": "0.59.4",
    "react-native-checkbox": "^2.0.0",
    "react-native-datepicker": "^1.7.2",
    "react-native-easy-grid": "^0.2.0",
    "react-native-elements": "^0.19.1",
    "react-native-fabric": "^0.5.2",
    "react-native-fbsdk": "^0.8.0",
    "react-native-firebase": "^5.5.4",
    "react-native-flexi-radio-button": "^0.2.2",
    "react-native-geocoder": "^0.5.0",
    "react-native-geocoding": "^0.3.0",
    "react-native-gesture-handler": "^1.3.0",
    "react-native-google-places-autocomplete": "^1.3.9",
    "react-native-google-signin": "^2.0.0",
    "react-native-image-picker": "^0.28.0",
    "react-native-imagepicker": "^2.0.0",
    "react-native-linkedin": "^1.3.1",
    "react-native-linkedin-login": "^1.44.1",
    "react-native-maps": "^0.22.1",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-modal": "^11.3.1",
    "react-native-modal-datetime-picker": "^7.5.0",
    "react-native-paypal-wrapper": "^1.3.2",
    "react-native-simple-time-picker": "^0.2.0",
    "react-native-timeline-listview": "^0.2.3",
    "react-navigation": "^3.11.1",
    "react-timer-mixin": "^0.13.4",
    "rn-fetch-blob": "^0.10.15",
    "rn-viewpager": "^1.2.9",
    "tipsi-twitter": "^2.1.1"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.51.1",
    "react-test-renderer": "16.6.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

I have tried updating packages but nothing solves this error.I have also installed props-types package from using npm but it does not works ?我试过更新包,但没有解决这个错误。我还使用 npm 安装了 props-types 包,但它不起作用? Help me in solving this issue .Thanks in advance !帮我解决这个问题。提前致谢!

I've solved it by these steps..我已经通过这些步骤解决了它..

  1. Remove installed package react-native-material-dropdown删除已安装的包react-native-material-dropdown

    yarn remove react-native-material-dropdown

  2. Install new packages react-native-material-dropdown-v2 and react-native-paper安装新的包react-native-material-dropdown-v2react-native-paper

    yarn add react-native-material-dropdown-v2 react-native-paper

  3. Swap react-native-material-dropdown to react-native-material-dropdown-v2 in your code在您的代码中将react-native-material-dropdown交换为react-native-material-dropdown-v2

    eg import { Dropdown } from 'react-native-material-dropdown' to import { Dropdown } from 'react-native-material-dropdown-v2'例如import { Dropdown } from 'react-native-material-dropdown' import { Dropdown } from 'react-native-material-dropdown-v2'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 "react-native-video 未定义不是一个对象(评估'_reactNative ...)" - react-native-video Undefined is not an object (evaluating '_reactNative ...) undefined 不是对象(评估'_reactNative.PropTypes.string')错误 - undefined is not an object (evaluating '_reactNative.PropTypes.string') Error “TypeError: undefined is not an object (evalating '_react.PropTypes.array')” 在 Mac 上反应原生 - "TypeError: undefined is not an object (evaluating '_react.PropTypes.array')" React native on Mac React-Native - undefined 不是一个对象(“评估 _react3.default.PropTypes.shape”) - React-Native - undefined is not an object (“evaluating _react3.default.PropTypes.shape”) undefined不是对象(评估'_reactNative.BackHandler.addEventListener') - undefined is not an object (evaluating '_reactNative.BackHandler.addEventListener') undefined 不是 React Native 中的对象(评估函数) - undefined is not an object (evaluating function) in React Native React Native:React Native未定义不是对象(评估'this._lazyCallableModules - React Native : react native undefined is not an object (evaluating 'this._lazyCallableModules React native Undefined不是对象(评估'_react3.default.PropType.shape') - React native Undefined is not an object(evaluating'_react3.default.PropType.shape') React Native:undefined不是一个对象(评估'r.default.manifest.env') - React Native: undefined is not an object (evaluating 'r.default.manifest.env') React Native-“未定义不是对象(正在评估'MyApp.navigation.openDrawer') - React Native - "undefined is not an object (evaluating 'MyApp.navigation.openDrawer')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM