question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
rubenSindresteancommented, Jul 17, 2020

Same issue, someone could resolved it?

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

1reaction
BazingaZetacommented, Feb 5, 2021

@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 the prop-types package, but received undefined.

I wonder if there’s not any other way to implement Stripe in expo without ejecting.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found