-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Back button image not showing in Stack navigator (although button is there and pressable) - iOS and Android #11792
Comments
I face the same issue but on iOS 😕 |
I'm having a similar issue to that @oliverdolgener. Everything is fine on Expo Go and in an Expo Dev Client, but my drawer icon is missing on production builds for iPhone only. It shows up on iPad somehow Edit: Turns out I was at my expo OTA update limit, which cased my app to not push new icons to the client. Had to pay for an upgraded Expo Updates limit. |
I'm experiencing the same as @oliverdolgener - back button is missing on iOS production-only, though not Android. This occurred after upgrading Expo to SDK 50. I experienced it with this set of react navigation packages:
as well as with
I am not using OTA updates, as another noted above. Not sure how to proceed here. |
My current workaround is to use a custom back icon. But would be nice to have the default ones working again |
Also having this issue after Expo 50 updgrade |
Same issue for me on iOS and with stack navigator. Only happens in production builds.
|
Has there been any progress on this issue or a known cause? After upgrading to Expo SDK 50, all our iOS production builds are not showing the back button after a fresh build. It is still pressable, but it's like the icon asset is missing or something. The only workaround we've found is that publishing an OTA subsequent to the build makes the back button appear again. It does not happen within Expo Go. When building a simulator preview build and inspecting the application bundle using "Show Package Contents", I see the back icon bundled into the build at Packages being used:
|
Here i my temporary fix. Expo will not be in a hurry to fix the issue, they have a new favourite :-) : |
Thanks mate, had the same issue over here and it blindsided us. Probably worth having the icons be different per platform but otherwise worked |
I am seeing the exact same issue as @carbonatedcoder
|
can confirm |
@EvanBacon can you or someone at Expo to take a look at this? |
Exactly, I am experiencing the same problem after migrating to Expo 50, the back icon files of react navigation are not resolved in the iOS production builds. For example, the following code: import { useAssets } from 'expo-asset';
const [assetsLoaded, assetsError] = useAssets([
require('@react-navigation/elements/src/assets/back-icon.png'),
require('@react-navigation/elements/src/src/assets/back-icon-mask.png'),
]);
if (assetsError) {
console.warn(assetsError);
} throws the following error:
|
Has anyone solved this problem? Expo 51 still have the same problem on iOS production build. |
Can confirm that this happens with our app on iOS production build and gets fixed by making an OTA update after build. |
I confirm. This problem occurs in almost every build for iOS when using Expo 50 |
@sergioisidoro Would you be willing to update the description to include iOS? If not, we can create a new issue since many of us are only seeing this on iOS. |
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
@dylanrandle Done! Thanks for bringing attention to this I also removed the word nested because it seems people are getting this issue on non nested navigators (?) can please someone confirm that it is indeed the case? or does this only happen on nested navigators? Also for people finding this issue for the first time, note that it can be worked around by providing a custom image through the prop. |
I confirm that on any Stack navigation screen. It doesn't matter if it's nested or in Root.
The library versions are used by installing via expo-cli (npx expo install ...) |
I am also still having this issue on iOS production builds in SDK 51.0.11. RN elements, native, stack and bottom tabs are all the latest version, updated using expo install. |
I've used the following workaround which is I basically took from
Then:
|
Wow, #12019 really fixes the issue. I'm currently patching it with patch-package:
i.e. just delete the node_modules/@react-navigation/elements/src/assets/back-icon@1.5*.png files. |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
Current behavior
I'm having an issue where the arrow image of the back button does not show on Android (Expo Go - simulator and Device), despite the button being there, and being pressable.
The image shows on iOS, and it's only an issue on a nested navigator, not the Root stack navigator
Stack screen 1
to the root stack, the back button starts showing.headerShown: false
. Nothing helpedheaderBackImage
bypasses the issueiOs (left), Android (right)
NOTE: Cannot reproduce in Expo snack because of Reanimated issues
Expected behavior
Back button showing.
Reproduction
https://snack.expo.dev/@smaisidoro/talking-violet-coffee
Platform
Packages
Environment
Expo Go
Similar issues found:
#8609
#11657
Worked around the issue by providing a custom back button image as a
headerBackImage
componentThe text was updated successfully, but these errors were encountered: