简体   繁体   中英

TypeError : undefined is not an object ( _reactNative.Animated.Text.propStyles.style )

Image

在此处输入图像描述

Build is successfull, but this happens every time.

PropTypes are no longer in core React Native components , like Animation. So, you have to update your dependencies, like react-native-material-dropdown and its dependencies.

I have begun this process, but have only published to my forks on github. You could modify your package.json file to something like this:

  "dependencies": {
    ...
    "react-native-material-dropdown": "https://github.com/boorad/react-native-material-dropdown",
    ...
  }

Warning: it's not a permanent solution. Ideally, you would want all three repos to have artifacts published to NPM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM