While developing an app in React Native intgerating with Stripe, I keep getting a warning [ReferenceError: Can't find variable: document]
.
I can't get the cause for the error.
The only possiblity I can think is if the Stripe module is only built for react js and is looking for the HTML document to reference.
I am fairly certain it is this line which is causing the warning.
import {loadStripe} from '@stripe/stripe-js';
When it is included the warning shows up. I read the documentation but there's nothing I could find.
If anyone could point me in the right direction for what might be causing the problem or if stripe will work on react native as a cross platform app, please let me know.