Skip to content

Send NString to a reject function instead of NSException. React-Native 0.79 #845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KorotkovAlex
Copy link

In react-native 0.79 reject interface are changed. We should send NSString instead of NSException

@KorotkovAlex KorotkovAlex changed the title Send NString to a reject function instead of NSException Send NString to a reject function instead of NSException. React-Native 0.79 Jun 9, 2025
@jankosecki
Copy link

jankosecki commented Jun 10, 2025

I can confirm - reject on 0.79 bridgeless crashes the app if NSException is passed instead of NSString.
Changing to e.description has fixed it for me.

Also, API of reject has expected NSString for few years already so it means that the mapping layer has become stricter in 0.79 but merging it shouldn't cause any problems on older versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants