Skip to content

[0.81-stable] Minor future-proofing changes#2827

Open
amgleitman wants to merge 1 commit intomicrosoft:0.81-stablefrom
amgleitman:0.81-cpp23-compatible
Open

[0.81-stable] Minor future-proofing changes#2827
amgleitman wants to merge 1 commit intomicrosoft:0.81-stablefrom
amgleitman:0.81-cpp23-compatible

Conversation

@amgleitman
Copy link
Member

Summary:

A couple of future-proofing changes to react-native-macos to suppress some warnings and ensure better C++23 compatibility.

Test Plan:

Validated that RNTester builds for macOS and iOS.

@amgleitman amgleitman requested a review from a team as a code owner February 4, 2026 23:12
@amgleitman amgleitman changed the title Minor future-proofing changes [0.81-stable] Minor future-proofing changes Feb 4, 2026
#pragma once

#include <react/renderer/graphics/Geometry.h>
#include <react/renderer/graphics/Float.h> // [macOS]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was this one for?

// Unspecified values do not.
// This wouldn't override a container view's `userInteractionEnabled = NO`
view.userInteractionEnabled = YES;
break; // [macOS]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also make this upstream in main?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Along with, a bunch of the changes here


// Atomic variant of `_waitingForMountingStageOnMainQueue = YES;`
atomic_fetch_or(&_waitingForMountingStageOnMainQueue, 1);
atomic_store(&_waitingForMountingStageOnMainQueue, 1); // [macOS]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a short comment why this had to change?

@Saadnajmi
Copy link
Collaborator

Nit, I added a PR title check, so the title should look something like: "fix(0.81): Let RNM build with c++23" (basically VERB(SCOPE): CHANGE)

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.

2 participants