Skip to content

Conversation

Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Dec 10, 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

In preparation for the addition of Typescript types in RN 0.71, let's take some time to re-orgnaize our flow types. Particularly, let's separate macOS specific View props into a type ViewPropsMacOS. This matches IOSViewProps and AndroidViewProps. Eventually, we can use this to inform our typescript type ViewPropsMacOS once we sync to 0.71.

Changelog

[macOS] [Added] - Implement Flow type MacOSViewProps

Test Plan

I did a text compare of our ViewPropTypes.js on RN Core at 0.68-stable and our fork to create this file.

@Saadnajmi Saadnajmi marked this pull request as ready for review December 10, 2022 00:54
@Saadnajmi Saadnajmi requested a review from a team as a code owner December 10, 2022 00:54
@analysis-bot
Copy link

analysis-bot commented Dec 14, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 61c6788
Branch: main

@Saadnajmi
Copy link
Collaborator Author

@mischreiber could you take another look?

@Saadnajmi Saadnajmi merged commit 14d82f2 into microsoft:main Dec 19, 2022
@Saadnajmi Saadnajmi deleted the ViewPropsMacOS branch December 19, 2022 03:06
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Feb 13, 2023
* Implement ViewPropsMacOS

* lint

* Add back Android ISS changes

* PR feedback
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request May 1, 2024
Summary:
* Implement ViewPropsMacOS

* lint

* Add back Android ISS changes

* PR feedback

Test Plan: See test plan in D45362318

Reviewers: shawndempsey, chpurrer, lefever, moti, helenistic

Reviewed By: shawndempsey

Differential Revision: https://phabricator.intern.facebook.com/D45444179

Tasks: T152048081

# Conflicts:
#	Libraries/Components/View/ViewPropTypes.js

# Conflicts:
#	packages/react-native/Libraries/Components/View/ViewPropTypes.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants