-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[expo-font][iOS] Fix font registration failing when font was in use. #28989
Conversation
The Pull Request introduced fingerprint changes against the base commit: 56a028d Fingerprint diff[
{
"type": "dir",
"filePath": "../../packages/expo-font/ios",
"reasons": [
"expoAutolinkingIos"
],
"hash": "eeb1766aaef499afccd13cb634d09e754ec7b445"
}
] Generated by PR labeler 🤖 |
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
hey @aleqsio how long does it usually takes after the PR is merged for this to get into a release? |
For a CNG flow (not expo-go), usually a week or so :) |
@aleqsio roger that. Thank you for the fix! |
when will this update be live in npm? |
Also waiting for this! |
Waiting this as well. Fonts do not work in my app from latest expo upgrade. Any Expo team member able to comment on when this will be released to the live version? What is the last stable version of Expo that we can use. |
@aleqsio What can be done to test the pull request or integrate into the package. I can install the standalone build from the pull request (or current main branch, since the PR is merged, but not published to NPM), but I do not see how to use it with EAS build. Any advice? |
Here is a patch package for
|
@hyochan Unfortunately, this did not work. |
…28989) Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
also waiting for this! |
@aleqsio what's going on with this? Is there any solution for the ongoing issue or it's sorted? If that's the case, can you please tell us how to apply that |
@pera14 Make sure to update to the latest |
@aleqsio I installed the latest |
This sounds like an unrelated issue - this one was happening on an app reload. You can try to open an issue with a fresh reproduction - I'm pretty sure the issue in the repro linked here was fixed already. |
Can you try to open a new issue then since I have had this issue for a long time and I thought it was related to this because it was crashing the app on reload as well |
I've just realized that this patch doesn't work in release mode while it is fine in development. Let me investigate further and come back. |
@hyochan no need to use patch package anymore, new version of Expo fixes this. |
Disabling |
Is there any fix or workaround for this? |
The only workaround I found working was to downgrade expo font to "expo-font": "~11.10.3". It just kept on giving errors on expo 50.0.19 for me especially for production build. |
Why
Fixes #28948
How
When unregistering a font, we sometimes bump into a failure.
Now, if the failure code indicates that the font will still be available afterwards, we let the registerFont function complete instead of rethrowing this error.
Test Plan
Tested that this works in standalone app.
Checklist
npx expo prebuild
& EAS Build (eg: updated a module plugin).