Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text.propTypes.style #342

Open
balwinders opened this issue Dec 9, 2022 · 2 comments
Open

Text.propTypes.style #342

balwinders opened this issue Dec 9, 2022 · 2 comments

Comments

@balwinders
Copy link

balwinders commented Dec 9, 2022

TypeError: undefined is not an object (evaluating '_reactNative.Text.propTypes.style')
React-native version:0.70.0

@farazirfan47
Copy link

@balwinders did you find the solution? what was the cause?

@rdnsan
Copy link

rdnsan commented Jul 14, 2023

Fix:

  • navigate to node_modules/react-native-material-textfield/src/components
  • Open files affix/index.js, helper/index.js and label/index.js
  • Replace style: Animated.Text.propTypes.style with style: Text.propType
  • import { Text } in each of these 3 files import { Animated, Text } from 'react-native'

This should fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants