Skip to content
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

Remove 1.5x back-icon.png images. Ensures the back icon renders in iOS production builds, fixes #11792 #12019

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

sparkertime
Copy link
Contributor

Please provide enough information so that others can review your pull request.

Motivation

I've been seeing the issue described by #11792 where the back button is not shown on iOS. It's a frustrating problem since the issue – back buttons on a Stack Navigator not showing on iOS – only happens in production builds.

Test plan

I ported the React Native code for renderBackImage in HeaderBackButton along with all assets and used that as a starting point to troubleshoot the issue. Removing the 1.5x variants fixes the problem for me. I'm enough of a React Native dunce that I don't totally understand why those two files cause issues, but removing those files seems fine since that scale doesn't seem to be supported anyway according to the Image docs.

Note - it could also be the case that the 1x variants are superfluous and should be removed, but I'll leave that to the maintainers to decide

I'd submit a test plan but as the others have reported in the issue linked above, this is a production-only bug for me.

Copy link

Hey @sparkertime! Thanks for opening your first pull request in this repo. If you haven't already, make sure to read our contribution guidelines.

Copy link

netlify bot commented Jun 13, 2024

Deploy Preview for react-navigation-example ready!

Name Link
🔨 Latest commit 5f66e6c
🔍 Latest deploy log https://app.netlify.com/sites/react-navigation-example/deploys/667d37e141ce65000876d9e5
😎 Deploy Preview https://deploy-preview-12019--react-navigation-example.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@satya164
Copy link
Member

Thanks for the PR. Isn't this a bug in Expo's bundler that should be fixed? Have you opened a bug report there?

@sparkertime
Copy link
Contributor Author

Thanks for the PR. Isn't this a bug in Expo's bundler that should be fixed? Have you opened a bug report there?

As I mentioned, I'm a React Native dunce so I have no idea and it's a bit beyond my capabilities to find out. Feel free to close this if this is the wrong solution and thanks for the quick response!

@satya164
Copy link
Member

@sparkertime I'll merge the PR, however I'd also request to open an issue in Expo regarding this.

Copy link
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@satya164 satya164 enabled auto-merge (squash) June 27, 2024 09:59
@satya164 satya164 merged commit 5e297a0 into react-navigation:main Jun 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants