TypeError: undefined is not an object (evaluating '_reactNative.View.propTypes.style')
See original GitHub issueI just did yarn add expo-stripe-checkout
then I import it with import { StripeCheckout } from 'expo-stripe-checkout';
and the app crash with this error:
TypeError: undefined is not an object (evaluating '_reactNative.View.propTypes.style')
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
TypeError: undefined is not an object (evaluating '_reactNative ...
TypeError : undefined is not an object (evaluating '_reactNative.View.propTypes.style') This error shows "react-native": "0.63.2", "react-native-elements": ...
Read more >undefined is not an object (evaluating 'u.View.propTypes.style ...
As was written View.propTypes has been deprecated. I have been trying to find this piece in my code. But couldn't.
Read more >TypeError: undefined is not an object (evaluating ... - Laracasts
TypeError : undefined is not an object (evaluating '_reactNative. View. propTypes. style')
Read more >undefined is not an object (evaluating '_reactNative ... - YouTube
ERROR TypeError : undefined is not an object ( evaluating '_reactNative.Image. propTypes.resizeMode') React Native Download Video from url and ...
Read more >typeerror: undefined is not an object (evaluating '_ ... - You.com
ERROR TypeError: undefined is not an object (evaluating '_react.PropTypes.array') ERROR Invariant Violation: Module AppRegistry is not a registered callable ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, go to node_modules/expo-stripe-checkout/index.js and search for StripeCheckout.propTypes, and there you will find style: View.propTypes.styles. remove that and replace it with ViewPropTypes and then go and import ViewPropTypes from ‘react-native’.
FROM styles: View.propTypes.styles TO styles: ViewPropTypes
@rubenSindrestean that did not work for me.
Plus, I am getting this error: Warning: Failed prop type: StripeCheckout: prop type
style
is invalid; it must be a function, usually from theprop-types
package, but receivedundefined
.I wonder if there’s not any other way to implement Stripe in expo without ejecting.