Repository navigation
Conversation
Hides disabled scenes using `top` instead of `left`, which fixes a bug with the native UITabBar. When the UITabBar's width is zeroed because the scene has `left: SCREEN_WIDTH, right: 0` applied, this triggers a bug with the kerning of the tab titles. Instead, zeroing the height by setting `top: SCREEN_HEIGHT` avoids the bug. Also applies `pointerEvents="none"` to disabled scenes so that views in the off-screen scenes definitely don't receive touches, which was occurring before. Test Plan: Display a UITabBar and push a scene entirely over it. Pop the scene and see that the the tab titles are not scrunched. Thoroughly test the Navigator example in the UIExplorer and see that scenes properly receive touch events when they are visible.
Contributor
|
Looks good to me |
Contributor
|
@facebook-github-bot import |
Contributor
|
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/458390294322071/int_phab to review. |
Collaborator
|
Awesome, nice one @ide 😄 |
FalseLobster
pushed a commit
to FalseLobster/react-native
that referenced
this pull request
Jul 3, 2024
* Replace `--frozen-lockfile` with --immutable * Remove `apple-install-dependencies * Update apple-xcode-select * Use macos-13-arm64 * Build Debug only * Use custom Xcodebuild template * Separate build & test * Use Codeql v2 * Update template syntax * try major refactor * rename apple-job-publish * try big 2 * Fix Hermes * Comment out test temporarily * Fix visionOS + New Arch + JSC * Move iOS down, visionOS -> xrOS * Comment out failing jobs * Update build-test-rntester.yml * Move scripts to scripts folder * Update RNTA script for RNM use * Update VM image per notice * Update gitignore * Don't test on visionOS * fix use out-of-scope memory warning (react#41441) Summary: Pull Request resolved: react#41441 changelog: [internal] Reviewed By: cipolleschi Differential Revision: D51233760 fbshipit-source-id: 5fc7ab22220e3d80729243e715e22e85e3ba7afa * Retry xcode tests on failure --------- Co-authored-by: Samuel Susla <samuelsusla@meta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hides disabled scenes using
topinstead ofleft, which fixes a bug with the native UITabBar. When the UITabBar's width is zeroed because the scene hasleft: SCREEN_WIDTH, right: 0applied, this triggers a bug with the kerning of the tab titles. Instead, zeroing the height by settingtop: SCREEN_HEIGHTavoids the bug.Also applies
pointerEvents="none"to disabled scenes so that views in the off-screen scenes definitely don't receive touches, which was occurring before.Fixes #1401, fixes #2011
Test Plan: Display a UITabBar and push a scene entirely over it. Pop the scene and see that the the tab titles are not scrunched.
Thoroughly test the Navigator example in the UIExplorer and see that scenes properly receive touch events when they are visible.