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

RNTester: Only show the Flatlist keyboard navigation switch on macOS #1381

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

Saadnajmi
Copy link
Collaborator

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

We show the Switch to enable Keyboard Navigation on all platforms. Let's make it only macOS, the only platform we validated. Also, let's change some styles used only by the test app to have a fallback non-platform color if we're not on macOS, should someone manage to enable the switch anyway.

Changelog

[macOS] [Fixed] - Only show the Flatlist keyboard navigation switch on macOS

Test Plan

Switch no longer shows up on iOS

Screen Shot 2022-08-25 at 11 28 46 AM

If I force it to be true on iOS, the test app isn't too broken:

Screen.Recording.2022-08-25.at.11.32.36.AM.mov

@Saadnajmi Saadnajmi requested a review from a team as a code owner August 25, 2022 18:37
@Saadnajmi Saadnajmi merged commit 806753a into microsoft:main Aug 25, 2022
@Saadnajmi Saadnajmi deleted the rntester-fix branch August 25, 2022 20:59
chiuam pushed a commit to chiuam/react-native-macos that referenced this pull request Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants