Create scripts for building patched React Native - #9
Merged
Merged
Conversation
julesyoungberg
approved these changes
Nov 18, 2025
julesyoungberg
left a comment
There was a problem hiding this comment.
LGTM. One comment about potentially adding a dry-run option to the script for moving files.
Docs also look good. Might be a typo at the start of Part 3b under 'Why we need to do this': 'When building the an Android the app directly builds them using the React Native JARs.'
Also, would it be worth creating a script out of the codeblock at the end of Part 3b?
hsource
added a commit
that referenced
this pull request
Nov 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
As part of Task 1.1: Build React Native 0.81 in an empty test project, we need to make sure we can build a fork of React Native that builds with a test project.
This PR creates scripts that can be used with the instructions there to build a fork of React Native.
Changes
Before starting, I did these steps: How did we figure out the steps for “Create scripts for building patched React Native”
Build scripts
scripts/build-package.jsto build iOS artifactssdks/hermesc/osx-binscripts/move-react-native-package.shto move react-native package files to rootsaved-root-filesdirectorypackages/react-nativeto root.gitignoreto remove/packages/react-native/from paths and allow required files--reverseflag to undo the moveGradle configuration
publishAllToGitLabtask inbuild.gradle.ktsto publish Android artifacts to GitLab Maven repositorypackages/react-native/ReactAndroid/publish.gradlegitlabPrivateTokenpropertyTesting
yarn add wanderlog/react-native#v0.81.5-wanderlog.11pushd android && ./gradlew clean && popd && cd ios &&xcodebuild clean -workspace wanderlog.xcworkspace -scheme wanderlog`yarn androidandyarn iosand verify they work