Skip to content

Move Reanimated availability check to JS side#3935

Merged
m-bert merged 6 commits intonextfrom
@mbert/move-reanimated-check-to-js
Jan 29, 2026
Merged

Move Reanimated availability check to JS side#3935
m-bert merged 6 commits intonextfrom
@mbert/move-reanimated-check-to-js

Conversation

@m-bert
Copy link
Copy Markdown
Collaborator

@m-bert m-bert commented Jan 27, 2026

Description

Currently if Reanimated is not installed, running apps on iOS results in redbox that says that it Reanimated module doesn't exist.

It happens because in this line in module we call [self.moduleRegistry moduleForName:"ReanimatedModule"]. This goes through RCTModuleRegistry to RCTTurboModuleManager, where this method is forced to throw redbox if module is not found.

To fix this, we move check for Reanimated availability to JS side.

Test plan

Tested on basic-example app with and without Reanimated

@m-bert m-bert changed the base branch from main to next January 27, 2026 15:19
@m-bert m-bert requested a review from j-piasecki January 27, 2026 15:19
Comment thread packages/react-native-gesture-handler/src/specs/NativeRNGestureHandlerModule.ts Outdated
Comment thread packages/react-native-gesture-handler/apple/RNGestureHandlerModule.mm Outdated
@m-bert m-bert requested a review from j-piasecki January 28, 2026 10:12
@m-bert m-bert merged commit 0c130e3 into next Jan 29, 2026
8 checks passed
@m-bert m-bert deleted the @mbert/move-reanimated-check-to-js branch January 29, 2026 12:28
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.

3 participants