#noname_error

1 messages ยท Page 1 of 1 (latest)

coarse runeBOT
#

๐Ÿ‘‹ 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.

mint stump
#

Which version of our SDK are you using?

coarse runeBOT
latent oriole
#

newest

#

complete new install today in new Project with npm install @stripe/stripe-react-native

harsh junco
#

is it possible to give more detail such as the full stack trace and error messages?

latent oriole
harsh junco
#

right?

harsh junco
harsh junco
#

until we fix this, there's a temporary workaround suggested in the end of that issue

harsh junco
#

I'm just saying that until we fix this the other issue has a temporary work around

#

would you mind trying that

latent oriole
#

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

harsh junco
#

yes

latent oriole
#

ok in 1 h i can check it out

harsh junco
#

by then this thread would be closed but don't worry, just start a new one