[英]react-native-video Undefined is not an object (evaluating '_reactNative ...)
[英]undefined is not an object evaluating (_reactnative.Modal.propTypes.animationType) after updating react native version to 0.59.4
我已将 React Native 版本从 0.55 更新到 0.59 并面临严重问题并尝试了所有方法但没有任何效果。它给了我错误
undefined is not an object evaluating (_reactnative.Modal.propTypes.animationType)
这是我的 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"
}
}
我试过更新包,但没有解决这个错误。我还使用 npm 安装了 props-types 包,但它不起作用? 帮我解决这个问题。提前致谢!
我已经通过这些步骤解决了它..
删除已安装的包react-native-material-dropdown
yarn remove react-native-material-dropdown
安装新的包react-native-material-dropdown-v2
和react-native-paper
yarn add react-native-material-dropdown-v2 react-native-paper
在您的代码中将react-native-material-dropdown
交换为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.