Skip to content

Conversation

christophpurrer
Copy link

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

Due to an early cherry-pick from a more recent facebook/react-native version > #1498 this broke.

In #1498 I must have only build for rn-iOS + Paper. I think we need a CircleCI job now for rn-iOS + Fabric

Here is the fix.

  • std::optional's function signature is has_value()
  • where as folly::Optional used hasValue()

Changelog

[macOS] [Fixed] - Fix compilation error in Schedule.cpp when building for rn-iOS + Fabric

Test Plan

In packages/rn-tester I ran:

USE_FABRIC=1 pod install

And then build and launched the app

Screenshot 2023-01-12 at 10 11 28 AM

Due to an early cherry-pick from a more recent facebook/react-native version > microsoft#1498
this broke.

In microsoft#1498 I must have only build for rn-iOS + Paper.
I think we need a CircleCI job now for rn-iOS + Fabric

Here is the fix.
- std::optional's function signature is has_value()
- where as folly::Optional used hasValue()

In packages/rn-tester I ran:
```
USE_FABRIC=1 pod install
```
And then build and launched the app
@christophpurrer christophpurrer requested a review from a team as a code owner January 12, 2023 09:17
@Saadnajmi Saadnajmi merged commit 005ef5c into microsoft:main Jan 12, 2023
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Feb 13, 2023
…ic (microsoft#1634)

Due to an early cherry-pick from a more recent facebook/react-native version > microsoft#1498
this broke.

In microsoft#1498 I must have only build for rn-iOS + Paper.
I think we need a CircleCI job now for rn-iOS + Fabric

Here is the fix.
- std::optional's function signature is has_value()
- where as folly::Optional used hasValue()

In packages/rn-tester I ran:
```
USE_FABRIC=1 pod install
```
And then build and launched the app
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
…ic (microsoft#1634)

Due to an early cherry-pick from a more recent facebook/react-native version > microsoft#1498
this broke.

In microsoft#1498 I must have only build for rn-iOS + Paper.
I think we need a CircleCI job now for rn-iOS + Fabric

Here is the fix.
- std::optional's function signature is has_value()
- where as folly::Optional used hasValue()

In packages/rn-tester I ran:
```
USE_FABRIC=1 pod install
```
And then build and launched the app
# Conflicts:
#	ReactCommon/react/renderer/scheduler/Scheduler.cpp
shwanton pushed a commit to shwanton/react-native-macos that referenced this pull request Mar 10, 2023
…ic (microsoft#1634)

Due to an early cherry-pick from a more recent facebook/react-native version > microsoft#1498
this broke.

In microsoft#1498 I must have only build for rn-iOS + Paper.
I think we need a CircleCI job now for rn-iOS + Fabric

Here is the fix.
- std::optional's function signature is has_value()
- where as folly::Optional used hasValue()

In packages/rn-tester I ran:
```
USE_FABRIC=1 pod install
```
And then build and launched the app
# Conflicts:
#	ReactCommon/react/renderer/scheduler/Scheduler.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants