Specific font family setting breaks Expo go [SDK 51]
Problem
Minimal reproducible example https://github.com/SenadAlagic/expo-bug-repro What platform(s) does this occur on? iOS Did you reproduce this issue in a development build? Yes Summary As many people who transitioned to SDK 51 it didn't go smooth on my project but issues are to be expected. I ran into the issue of the app crashing and looked around and found this issue: https://github.com/expo/expo/issues/28618 which I thought was everything I needed, it described my issue perfectly and I thought that would be the end. I followed everything that was said here and still when I boot up my app on an iOS simulator it crashed immediately, BUT when I run it on my physical Android phone it works fine. I decided to strip it down and see what exactly is the cause of the issue. For some reason the issue seems to be in specifying the font-family of a Text component (default react-native's). Now, in the interest of shortening the repro I didn't assign the values "properly", the IDE does complain but the app does build and it crashes.(just pointing out that I don't have these issues and errors in my app, this is not how I change font family of text) I attributed those crashes to the new SDK version and the issue from the before mentioned GitHub issue link but this doesn't appear to be the issue with Reanimated (?). Anyways, I hope this repro is of use to you guys and I hope we can figure what exactly is the issue here. Thank you so much for your time! Steps to reproduce 1. clone
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Specific font family setting breaks Expo go [SDK 51]
@SenadAlagic you can refer this doc - https://docs.expo.dev/develop/user-interface/fonts/#with-config-plugin
Trust Score
2 verifications
- 1
@SenadAlagic you can refer this doc - https://docs.expo.dev/develop/user-interfa
@SenadAlagic you can refer this doc - https://docs.expo.dev/develop/user-interface/fonts/#with-config-plugin
Validation
Resolved in expo/expo GitHub issue #29018. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep