Skip to content
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

feat: support platform extensions like in metro #816

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

jbroma
Copy link
Member

@jbroma jbroma commented Dec 8, 2024

Summary

This PR add support for platform specific assets. This was previously removed in initial V5 PR because Metro officially doesn't support it.

There is unofficial support for platform extensions for assets as long as there is a base assets without platform extension as well, as shown here: facebook/react-native#31099

This exact behaviour was implemented in this PR in order to provide maximum compatibility with the ecosystem. Popular library example includes React Navigation - link

Test plan

  • - tests pass

Copy link

changeset-bot bot commented Dec 8, 2024

🦋 Changeset detected

Latest commit: 45e17f8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@callstack/repack Minor
@callstack/repack-dev-server Minor
@callstack/repack-init Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
repack-website ⬜️ Ignored (Inspect) Dec 8, 2024 4:02pm

@jbroma jbroma merged commit 6ed9a6f into main Dec 9, 2024
5 checks passed
@jbroma jbroma deleted the feat/support-platform-extensions-for-assets branch December 9, 2024 09:23
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