Skip to content

Commit 6ca29d4

Browse files
committed
feat: bump RN
1 parent b17eaee commit 6ca29d4

6 files changed

Lines changed: 1494 additions & 923 deletions

File tree

example/android/app/src/main/java/com/expensify/livemarkdownexample/MainApplication.kt

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,20 @@ import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
77
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
8-
import com.facebook.react.ReactNativeHost
9-
import com.facebook.react.ReactPackage
108
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11-
import com.facebook.react.defaults.DefaultReactNativeHost
129

1310
class MainApplication : Application(), ReactApplication {
1411

15-
override val reactNativeHost: ReactNativeHost =
16-
object : DefaultReactNativeHost(this) {
17-
override fun getPackages(): List<ReactPackage> =
18-
PackageList(this).packages.apply {
19-
// Packages that cannot be autolinked yet can be added manually here, for example:
20-
// add(MyReactNativePackage())
21-
}
22-
23-
override fun getJSMainModuleName(): String = "index"
24-
25-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
26-
27-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
28-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
29-
}
30-
31-
override val reactHost: ReactHost
32-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
12+
override val reactHost: ReactHost by lazy {
13+
getDefaultReactHost(
14+
context = applicationContext,
15+
packageList =
16+
PackageList(this).packages.apply {
17+
// Packages that cannot be autolinked yet can be added manually here, for example:
18+
// add(MyReactNativePackage())
19+
},
20+
)
21+
}
3322

3423
override fun onCreate() {
3524
super.onCreate()
1.65 KB
Binary file not shown.

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.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
},
1111
"dependencies": {
1212
"expensify-common": "2.0.148",
13-
"react": "19.1.0",
14-
"react-native": "0.81.4",
15-
"react-native-worklets": "0.6.1"
13+
"react": "19.2.0",
14+
"react-native": "0.83.1",
15+
"react-native-worklets": "0.7.2"
1616
},
1717
"devDependencies": {
1818
"@babel/core": "^7.25.2",
@@ -21,17 +21,17 @@
2121
"@react-native-community/cli": "20.0.0",
2222
"@react-native-community/cli-platform-android": "20.0.0",
2323
"@react-native-community/cli-platform-ios": "20.0.0",
24-
"@react-native/babel-preset": "0.81.4",
25-
"@react-native/eslint-config": "0.81.4",
26-
"@react-native/metro-config": "0.81.4",
27-
"@react-native/typescript-config": "0.81.4",
28-
"@types/react": "^19.1.0",
24+
"@react-native/babel-preset": "0.83.0",
25+
"@react-native/eslint-config": "0.83.0",
26+
"@react-native/metro-config": "0.83.0",
27+
"@react-native/typescript-config": "0.83.0",
28+
"@types/react": "^19.2.0",
2929
"@types/react-test-renderer": "^19.1.0",
3030
"babel-plugin-module-resolver": "^5.0.0",
3131
"eslint": "^8.19.0",
3232
"jest": "^29.6.3",
3333
"prettier": "2.8.8",
34-
"react-test-renderer": "19.1.0",
34+
"react-test-renderer": "19.2.0",
3535
"typescript": "^5.8.3"
3636
},
3737
"engines": {

0 commit comments

Comments
 (0)