To verify that facebook/react-native#33611 works correctly on windows, follow those steps:
- Create a new project on RN 0.68.0 with:
npx react-native init RN068 --version 0.68.0 --skip-install - Install packages with
cd RN068 && yarn - Opt-in for New Architecture by editing
android/gradle.propertiesand settingnewArchEnabled=true - Verify that build is broken on Android on Windows:
cd android && ./gradlew assembleDebug --scan- This step will prompt to publish a Gradle Scan at the of the build. Type yes and publish it.
- Make sure that the build actually failed.
- Apply the
fix33611-v3.patchattached to this Gist to your local environment:cd .. && git apply fix33611.patch - Verify that build works correctly on Android on Windows now:
cd android && ./gradlew assembleDebug --scan