Skip to content

Cherry-pick: Adding missing #import <QuartzCore/QuartzCore.h> imports (#35315)#1507

Merged
Saadnajmi merged 1 commit intomicrosoft:mainfrom
christophpurrer:quartz
Nov 15, 2022
Merged

Cherry-pick: Adding missing #import <QuartzCore/QuartzCore.h> imports (#35315)#1507
Saadnajmi merged 1 commit intomicrosoft:mainfrom
christophpurrer:quartz

Conversation

@christophpurrer
Copy link
Copy Markdown

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

A cherry-pick from facebook/react-native@0.72:
facebook@c0f06e8

These headers are needed on react-native-macOS, but not explicitly imported all the time.

It seems that some UIKit header will implicitly import them.

We have other use case in react-native(-iOS) in which we also explicitly importing them - https://github.com/facebook/react-native/search?q=QuartzCore- , hence use following 'that' practice 'here'.

Changelog

Changelog: [Internal]

Test Plan

Run rn-tester-macOS:
Screen Shot 2022-11-14 at 4 06 05 PM

)

Summary:
Pull Request resolved: facebook#35315

These headers are needed on react-native-macOS, but not explicitly imported all the time.

It seems that some UIKit header will implicitly import them.

We have other use case in react-native(-iOS) in which we also explicitly importing them - https://github.com/facebook/react-native/search?q=QuartzCore- , hence use following 'that' practice 'here'.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D41229835

fbshipit-source-id: b0182bf4f7905e8e157b341eb62cadec6ba354ca

# Conflicts:
#	Libraries/Text/Text/RCTTextView.m
#	React/Views/RCTView.m
@christophpurrer christophpurrer marked this pull request as ready for review November 14, 2022 15:07
@christophpurrer christophpurrer requested a review from a team as a code owner November 14, 2022 15:07
@Saadnajmi Saadnajmi merged commit a54f282 into microsoft:main Nov 15, 2022
@christophpurrer christophpurrer deleted the quartz branch November 15, 2022 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants