TypeError: undefined 不是一个对象(评估'_reactNative.Animated.Text.propTypes.style') [英] TypeError: undefined is not an object (evaluating '_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
inAnimated.Text.propTypes.style
inaffix/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屋!