#reygo_code

1 messages ¡ Page 1 of 1 (latest)

stoic laurelBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1254740510061494272

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

boreal grotto
#

If you are facing TS error, use @ts-ignore

tiny oyster
boreal grotto
#

Requires setupFutureUsage which isn't shown or explained and requires type FutureUsage which doesn't seem to be properly exported.
What you mean exactly by "requires" here ? what error message you are getting exactly ?

tiny oyster
#
Type '{ currencyCode: string; }' is not assignable to type 'Mode'.
  Property 'setupFutureUsage' is missing in type '{ currencyCode: string; }' but required in type 'SetupMode'.ts(2322)
PaymentSheet.d.ts(336, 5): 'setupFutureUsage' is declared here.
PaymentSheet.d.ts(311, 5): The expected type comes from property 'mode' which is declared here on type 'IntentConfiguration'
#

If I just copy the code

#

I'm on "@stripe/stripe-react-native": "0.38.0",

stoic laurelBOT
boreal grotto
#

Try casting the mode to PaymentMode