Skip to content

refactor(expotv): enable Expo autolinking module resolution#10

Merged
anishamalde merged 1 commit intoAmazonAppDev:mainfrom
byCedric:@bycedric/expotv/enable-autolinking-resolution
Apr 7, 2026
Merged

refactor(expotv): enable Expo autolinking module resolution#10
anishamalde merged 1 commit intoAmazonAppDev:mainfrom
byCedric:@bycedric/expotv/enable-autolinking-resolution

Conversation

@byCedric
Copy link
Copy Markdown
Contributor

@byCedric byCedric commented Apr 6, 2026

Changes:

  • Enabled experiments.autolinkingModuleResolution: true in packages/expotv

As a follow-up of #8, I also spotted that Vega is running React Native 0.72 - while ExpoTV is running React Native 0.81. In these cases, where multiple React Native versions live inside a single monorepo, I think it's a good idea to turn on our special resolver to align what was autolinked with what should be resolved. It makes working in a monorepo easier and more stable when using multiple versions of React Native.

This is an opt-in for SDK 54, and is enabled by default in SDK 55.

See: https://docs.expo.dev/versions/latest/config/app/\#autolinkingmoduleresolution
See: https://docs.expo.dev/modules/autolinking/\#dependency-resolution-and-conflicts
See: https://docs.expo.dev/guides/monorepos/\#deduplicating-auto-linked-native-modules

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This aligns Metros own module resolution with the core libraries resolved from autolinking. It makes working in a monorepo easier and more stable when using multiple versions of React Native. This is an opt-in for SDK 54, and is enabled by default in SDK 55.

See: https://docs.expo.dev/versions/latest/config/app/\#autolinkingmoduleresolution
See: https://docs.expo.dev/modules/autolinking/\#dependency-resolution-and-conflicts
See: https://docs.expo.dev/guides/monorepos/\#deduplicating-auto-linked-native-modules
@anishamalde anishamalde self-requested a review April 7, 2026 14:40
Copy link
Copy Markdown
Contributor

@anishamalde anishamalde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank-you again for the PR & Context! Merged ✅

@anishamalde anishamalde merged commit ded8b29 into AmazonAppDev:main Apr 7, 2026
@byCedric byCedric deleted the @bycedric/expotv/enable-autolinking-resolution branch April 9, 2026 14:17
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