#noname_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1389574130961088656
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Which version of our SDK are you using?
newest
complete new install today in new Project with npm install @stripe/stripe-react-native
is it possible to give more detail such as the full stack trace and error messages?
I've seen that you've already reported this on github https://github.com/stripe/stripe-react-native/issues/1988
right?
yes
this was also reported here https://github.com/stripe/stripe-react-native/issues/1971
this ist not me
until we fix this, there's a temporary workaround suggested in the end of that issue
yes I'm aware
I'm just saying that until we fix this the other issue has a temporary work around
would you mind trying that
You mean this ```js
Additional context
The problem is due to upstream changes in React Native, where Dynamic.asMap() now returns a nullable type.
The SDK currently expects ReadableMap (non-nullable), but doesnโt perform a null check before passing the value to functions.
This breaks Android builds out of the box on newer React Native versions.
Temporary workaround: patch all instances of cfg.asMap() with null checks in the relevant files (e.g., EmbeddedPaymentElementViewManager.kt, AddToWalletButtonManager.kt) before passing to other functions, e.g.:
val readableMap = cfg.asMap()
if (readableMap == null) return // or handle the error
...
yes
ok in 1 h i can check it out
by then this thread would be closed but don't worry, just start a new one