[英]TypeError : undefined is not an object ( _reactNative.Animated.Text.propStyles.style )
PropTypes are no longer in core React Native components , like Animation. PropTypes 不再在核心 React Native 组件中,例如 Animation。 So, you have to update your dependencies, like react-native-material-dropdown
and its dependencies.因此,您必须更新依赖项,例如react-native-material-dropdown
及其依赖项。
I have begun this process, but have only published to my forks on github.我已经开始了这个过程,但只在 github 上发布到我的分支。 You could modify your package.json
file to something like this:您可以将package.json
文件修改为以下内容:
"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.理想情况下,您希望所有三个存储库都将工件发布到 NPM。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.