Skip to content

Remove paper support - #3639

Merged
latekvo merged 33 commits into
nextfrom
@latekvo/remove-paper-support-new
Aug 19, 2025
Merged

Remove paper support#3639
latekvo merged 33 commits into
nextfrom
@latekvo/remove-paper-support-new

Conversation

@latekvo

@latekvo latekvo commented Jul 25, 2025

Copy link
Copy Markdown
Member

Description

This PR removes all paper support.

Tested on all platforms, all basic-example, expo-example and macos-example build and run successfully.

Fixme:

  • yarn lint:android does not work anymore

Test plan

  • Start expo-example and basic-example apps on: Android, iOS and MacOS

@latekvo latekvo mentioned this pull request Jul 25, 2025
@latekvo
latekvo requested a review from Copilot July 25, 2025 16:34

This comment was marked as resolved.

@WoLewicki

Copy link
Copy Markdown
Member

Beautiful ❤️

@j-piasecki

Copy link
Copy Markdown
Member

I think this should be targeting the next branch 😅

@latekvo
latekvo changed the base branch from main to next July 28, 2025 09:27
@latekvo
latekvo force-pushed the @latekvo/remove-paper-support-new branch from da63110 to 31a9fdd Compare July 28, 2025 10:01
@latekvo
latekvo force-pushed the @latekvo/remove-paper-support-new branch from 31a9fdd to 4730f8a Compare July 28, 2025 10:43
@latekvo
latekvo marked this pull request as ready for review August 8, 2025 11:44
@latekvo
latekvo requested review from j-piasecki and m-bert August 8, 2025 11:45
Comment on lines +52 to +56
def isNewArchitectureEnabled() {
// This is a workaround for linter crashing when applying the `com.facebook.react` plugin.
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unfortunately, I couldn't find any proper solution for the linter CI crashing, other than keeping this function in place.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a thought, but what do you think about throwing error if new architecture is not enabled?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think we could have some environment variable for the CI to set when it wants to exclude the react plugin from the gradle build file.

what do you think about throwing error

Not sure if that's necessary, I think React Native already throws a warning when new arch is set to false on the versions where it can't be disabled.

@latekvo
latekvo requested a review from akwasniewski August 8, 2025 12:35
Comment thread packages/react-native-gesture-handler/RNGestureHandler.podspec Outdated
Comment thread packages/react-native-gesture-handler/android/build.gradle Outdated
Comment thread packages/react-native-gesture-handler/apple/RNGestureHandlerDetector.mm Outdated
Comment thread packages/react-native-gesture-handler/apple/RNGestureHandlerDetector.mm Outdated
Comment on lines +52 to +56
def isNewArchitectureEnabled() {
// This is a workaround for linter crashing when applying the `com.facebook.react` plugin.
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a thought, but what do you think about throwing error if new architecture is not enabled?

Comment thread packages/react-native-gesture-handler/android/build.gradle Outdated
@latekvo
latekvo requested review from j-piasecki and m-bert August 12, 2025 12:38

@m-bert m-bert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 🚀

@latekvo
latekvo merged commit 0d87e2c into next Aug 19, 2025
8 checks passed
@latekvo
latekvo deleted the @latekvo/remove-paper-support-new branch August 19, 2025 09:58
m-bert added a commit that referenced this pull request Aug 21, 2025
## Description

#3639 removed support for React Native old architecture. While it removed script for architectures sync, it is still called on commit hook, thus trying to add commit with updated spec fails.

## Test plan

Run `git commit`
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.

6 participants