简体   繁体   English

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

[英]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. 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.

相关问题 TypeError: undefined is not an object(评估'_reactNative.Animated.Text.propTypes.style') - TypeError: undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style') React Native TypeError: undefined is not an object (evalating '_reactNative.Animated.Text.propTypes.style') 在 iOS 模拟器 - React Native TypeError: undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style') in iOS simulator undefined 不是一个对象(评估'_reactNative.Animated.Text.propTypes.style') - undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style') 类型错误:在 ReactNative 中尝试动画时未定义不是对象 - TypeError:Undefined is not an object while trying an animation in ReactNative TypeError: undefined is not an object(评估'_reactNative.Image.propTypes.resizeMode') - TypeError: undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode') TypeError: undefined is not an object(评估'_reactNative.Sentry.captureBreadcrumb') - TypeError: undefined is not an object (evaluating '_reactNative.Sentry.captureBreadcrumb') TypeError:undefined 不是本机反应中的对象(正在评估“_reactNative.Stylesheet.create”) - TypeError: undefined is not an object (evaluating '_reactNative.Stylesheet.create') in react native TypeError:undefined不是ReactNative中的对象(评估'_props.listMessagesQuery.listMessages') - TypeError: undefined is not an object(evaluating '_props.listMessagesQuery.listMessages') in ReactNative TypeError: undefined is not an object(评估'_reactNative.Stack.Navigator') - TypeError: undefined is not an object (evaluating '_reactNative.Stack.Navigator') ReactNative文字样式下一行 - ReactNative Text Style Next Line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM