Skip to content

Conversation

@WookieFPV
Copy link
Contributor

I had an Issue after migrating from an ancient Version.
On iOS the Icons were not shown (on dev Builds).
After a lot of debugging I found the issue.
In the App entry point (index.js) the main App Component was imported before expo.
The order of imports broke font loading.

import App from './App'; //<-- importing this before expo broke the Icon loading
import { registerRootComponent } from 'expo'; 

registerRootComponent(App);

This is probably a rare edge cases but not easy to debug & solve.

Another workaround was to call the rnvi-update-plist because then the fonts were already included at compile time and dynamic loading was needed.

==> This PR adds a warning for this (probably rare) Edge cases.

…ore expo. (This will cause Icons to not load in iOS). If expo is imported before the App component Icons work fine
@johnf
Copy link
Collaborator

johnf commented Oct 25, 2025

@vonovak I'm happy with this PR but wanted to check if there was a way that we could avoid the issue or maybe warn about it at runtime?

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