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

fix: ensure assets are registered correctly #608

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

satya164
Copy link
Member

@satya164 satya164 commented Aug 1, 2024

react-native uses a asset registry package to register assets. seems the library and the example app are using different copies of this package, presumably because Expo CLI embeds @react-native/assets-registry verbatim in the code during transform. this causes the library not to use the same copy of the package as react-native. this results in broken assets in the app.

with this change we're ensuring that we always load a single version of the package to ensure assets work.

closes #607

@satya164 satya164 added this pull request to the merge queue Aug 1, 2024
Merged via the queue into main with commit ab999bf Aug 1, 2024
24 checks passed
@satya164 satya164 deleted the @satya164/fix-asset-handling branch August 1, 2024 11:29
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.

Example app does not display images from the library
2 participants