Using Expo, icons get cut off in App Bar on Android using headerRight (but not if hot-swapped in) #12595
Open
3 of 13 tasks
Labels
8000
Uh oh!
There was an error while loading. Please reload this page.
Current behavior
Originally filed here in the expo project: expo/expo#36793. Below is copied from the initial report:
Platforms
I tested this on the Expo Go app on two Android devices:
Although I skipped web and iPhone to keep the example minimal, neither of these platforms had the issue when I first experienced the bug.
Steps
_layout.jsx
the<Text>
line is uncommented and the<Ionicons>
line is commented.npx expo start
. From a clean start of Expo Go, scan the QR code from the terminal. The screen should look like:<Text>
line and uncomment the<Ionicons>
line in_layout.jsx
. Save the file to hot reload. The screen should now look like:Note that the accessibility icon is (horizontally) fully visible.
Note that the accessibility icon is now almost entirely cut off - only a small section of one of the arms can be seen on the right.
<Ionicons>
line and uncomment the<Text>
line in_layout.jsx
. The screen should now look like:Here, only a sliver of the leftmost part of the R is visible.
Other Notes
Environment
Expo Doctor Diagnostics
Expected behavior
The desired behavior is that the
<Ionicons>
renders visibly in the right part of the App Bar, as it does after hot-swapping it for<Text>
.Reproduction
https://github.com/SubsequentlySneeds/expo-icon-header-bug-mre
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: