Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style')

Tags:

react-native

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

enter image description here

like image 510
Iffat Avatar asked Apr 15 '20 10:04

Iffat


1 Answers

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.

like image 94
Iffat Avatar answered Oct 02 '22 14:10

Iffat