TypeError: undefined 不是一个对象(评估'_reactNative.Animated.Text.propTypes.style') [英] TypeError: undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style')

查看:126
本文介绍了TypeError: undefined 不是一个对象(评估'_reactNative.Animated.Text.propTypes.style')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 React Native 升级到 0.62.2 后,安装

解决方案

我解决了这个问题,

  • 评论itemTextStyle:Text.propTypes.style in
    ..\node_modules\react-native-material-dropdown\src\components\dropdown文件.

  • 并移除

    Animated.Text.propTypes.style中的Animated

    词缀/索引

    助手/索引

    标签/索引

    react-native-material-textfield.

  • 并添加 import { Animated, Text} from 'react-native'; 在每个以上三个文件.

After upgrading React Native to 0.62.2, and installing react-native-material-dropdown` library, project is giving this error:

解决方案

I solved this by,

  • Commenting itemTextStyle: Text.propTypes.style in
    ..\node_modules\react-native-material-dropdown\src\components\dropdown file.

  • And remove Animated in Animated.Text.propTypes.style in

    affix/index

    helper/index

    label/index

    of react-native-material-textfield.

  • And added import { Animated, Text} from 'react-native'; in each of above three files.

这篇关于TypeError: undefined 不是一个对象(评估'_reactNative.Animated.Text.propTypes.style')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆