Skip to content

Commit b9e8b1b

Browse files
authored
[cherry-pick] Support react-native 0.81 (#3607) (#3688)
## Description This PR cherry-pick #3607 into `next` branch. It also adds necessary `target_compile_reactnative_options` function to `CMakeLists`. >[!CAUTION] > There are to problems in the example app: > 1. Right now `metro` server does not start. This is due to wrong import and this change will be also cherry-picked from `main`. > 2. `NativeDetector` crashes on `Reanimated`. However, this should not be related to these changes and I'll investigate it in a follow-up. ## Test plan Check that `basic-example` builds on both, `iOS` and `android`
1 parent 48448dc commit b9e8b1b

13 files changed

Lines changed: 2434 additions & 1906 deletions

File tree

apps/basic-example/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "35.0.0"
3+
buildToolsVersion = "36.0.0"
44
minSdkVersion = 24
5-
compileSdkVersion = 35
6-
targetSdkVersion = 35
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
88
kotlinVersion = "2.1.20"
99
isGHExampleApp = true

apps/basic-example/android/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ newArchEnabled=true
3737
# Use this property to enable or disable the Hermes JS engine.
3838
# If set to false, you will be using JSC instead.
3939
hermesEnabled=true
40+
41+
# Use this property to enable edge-to-edge display support.
42+
# This allows your app to draw behind system bars for an immersive UI.
43+
# Note: Only works with ReactActivity and should not be used with custom Activity.
44+
edgeToEdgeEnabled=false

apps/basic-example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)