Skip to content

Commit

Permalink
Add comment for canOverrideExistingModule in ReactModuleInfo cons…
Browse files Browse the repository at this point in the history
…tructor on Android (#6877)

## Summary

This PR adds a comment in `ReactModuleInfo` constructor in
ReanimatedPackage.java.

We set `canOverrideExistingModule` to `true` because Reanimated
overrides `UIManagerModule`.

## Test plan
  • Loading branch information
tomekzaw committed Jan 9, 2025
1 parent f27cfed commit 8027606
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() {
new ReactModuleInfo(
reactModule.name(),
moduleClass.getName(),
true,
true, // override UIManagerModule
reactModule.needsEagerInit(),
reactModule.isCxxModule(),
BuildConfig.IS_NEW_ARCHITECTURE_ENABLED));
Expand Down

0 comments on commit 8027606

Please sign in to comment.