Skip to content

[Fabric] Convert UISwitch to RCTSwitch shim #1527

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

Merged
merged 8 commits into from
Dec 9, 2022

Conversation

shwanton
Copy link

@shwanton shwanton commented Nov 29, 2022

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

Fabric on macOS implementation:
Replacing references of UISwitch to RCTSwitch shim

Changelog

[macOS][Fabric] - Replacing references of UISwitch to RCTSwitch shim

Test Plan

[x] Build RNTester-macOS w/ Fabric - doesn’t run yet, but no UISwitch errors
CleanShot 2022-11-28 at 16 14 19

Build errors:
Build RNTester-macOS_2022-11-28T16-13-01.txt

[x] Build RNTester - iOS w/ Fabric - New architecture example should work
https://user-images.githubusercontent.com/96719/204408588-bebae8df-a12e-4af7-94a5-874b43dac9cf.mp4

[x] Build RNTester-macOS w/ Paper - should work
CleanShot 2022-11-28 at 16 24 19

[x] Build RNTester - iOS w/ Paper - should work
CleanShot 2022-11-28 at 16 23 01

@shwanton shwanton marked this pull request as ready for review November 30, 2022 21:47
@shwanton shwanton requested a review from a team as a code owner November 30, 2022 21:47
@Saadnajmi Saadnajmi linked an issue Dec 1, 2022 that may be closed by this pull request
@lyzhan7 lyzhan7 merged commit d8ac299 into microsoft:main Dec 9, 2022
@shwanton shwanton deleted the fabric/rctswitch-shim-fix branch December 10, 2022 01:07
shwanton added a commit to shwanton/react-native-macos that referenced this pull request Feb 13, 2023
* [Fabric] Replace UIKit with RCTUIKit

* [Fabric] Convert UISwitch to RCTSwitch shim

* Add macOS tags

* Shim RCUISwitch

Co-authored-by: Shawn Dempsey <shawndempsey@fb.com>
shwanton added a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
* [Fabric] Replace UIKit with RCTUIKit

* [Fabric] Convert UISwitch to RCTSwitch shim

* Add macOS tags

* Shim RCUISwitch

Co-authored-by: Shawn Dempsey <shawndempsey@fb.com>
shwanton added a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
* [Fabric] Replace UIKit with RCTUIKit

* [Fabric] Convert UISwitch to RCTSwitch shim

* Add macOS tags

* Shim RCUISwitch

Co-authored-by: Shawn Dempsey <shawndempsey@fb.com>
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.

Replace UISwitch with RCTSwitch
3 participants