Skip to content

Commit 1e78876

Browse files
committed
chore: react-native 0.82
1 parent 1441ae3 commit 1e78876

File tree

7 files changed

+24
-36
lines changed

7 files changed

+24
-36
lines changed

FabricExample/android/app/src/main/java/com/keyboardcontrollerfabricexample/MainApplication.kt

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,19 @@ 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 {
14-
override val reactNativeHost: ReactNativeHost =
15-
object : DefaultReactNativeHost(this) {
16-
override fun getPackages(): List<ReactPackage> {
17-
// Packages that cannot be autolinked yet can be added manually here, for example:
18-
// packages.add(new MyReactNativePackage());
19-
return PackageList(this).packages
20-
}
21-
22-
override fun getJSMainModuleName(): String = "index"
23-
24-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
25-
26-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
27-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
28-
}
29-
30-
override val reactHost: ReactHost
31-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
11+
override val reactHost: ReactHost by lazy {
12+
getDefaultReactHost(
13+
context = applicationContext,
14+
packageList =
15+
PackageList(this).packages.apply {
16+
// Packages that cannot be autolinked yet can be added manually here, for example:
17+
// add(MyReactNativePackage())
18+
},
19+
)
20+
}
3221

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

FabricExample/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

FabricExample/android/gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

FabricExample/ios/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ target 'KeyboardControllerFabricExample' do
2626
)
2727

2828
post_install do |installer|
29-
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3029
react_native_post_install(
3130
installer,
3231
config[:reactNativePath],

FabricExample/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"@react-navigation/native-stack": "^6.11.0",
2020
"@react-navigation/stack": "^6.4.1",
2121
"lottie-react-native": "^7.3.4",
22-
"react": "19.1.0",
23-
"react-native": "0.81.4",
22+
"react": "19.1.1",
23+
"react-native": "0.82.0",
2424
"react-native-advanced-input-mask": "^1.4.6",
2525
"react-native-gesture-handler": "2.28.0",
2626
"react-native-haptic-feedback": "2.3.3",
@@ -38,18 +38,18 @@
3838
"@react-native-community/cli": "20.0.0",
3939
"@react-native-community/cli-platform-android": "20.0.0",
4040
"@react-native-community/cli-platform-ios": "20.0.0",
41-
"@react-native/babel-preset": "0.81.4",
42-
"@react-native/metro-config": "0.81.4",
43-
"@react-native/typescript-config": "0.81.4",
41+
"@react-native/babel-preset": "0.82.0",
42+
"@react-native/metro-config": "0.82.0",
43+
"@react-native/typescript-config": "0.82.0",
4444
"@testing-library/jest-native": "^5.3.3",
4545
"@testing-library/react-hooks": "8.0.1",
4646
"@testing-library/react-native": "13.0.1",
4747
"@types/jest": "^29.5.13",
48-
"@types/react": "^19.1.0",
49-
"@types/react-test-renderer": "^19.1.0",
48+
"@types/react": "^19.1.1",
49+
"@types/react-test-renderer": "^19.1.1",
5050
"jest": "^29.6.3",
5151
"patch-package": "^6.4.7",
52-
"react-test-renderer": "19.1.0"
52+
"react-test-renderer": "19.1.1"
5353
},
5454
"jest": {
5555
"preset": "react-native",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
},
8686
"devDependencies": {
8787
"@commitlint/config-conventional": "^11.0.0",
88-
"@react-native/babel-preset": "0.81.4",
89-
"@react-native/eslint-config": "0.81.4",
88+
"@react-native/babel-preset": "0.82.0",
89+
"@react-native/eslint-config": "0.82.0",
9090
"@release-it/conventional-changelog": "^2.0.0",
9191
"@testing-library/react-hooks": "^8.0.1",
9292
"@types/jest": "^29.5.13",
@@ -111,8 +111,8 @@
111111
"jest": "^29.6.3",
112112
"pod-install": "^0.1.0",
113113
"prettier": "^2.8.8",
114-
"react": "19.1.0",
115-
"react-native": "0.81.4",
114+
"react": "19.1.1",
115+
"react-native": "0.82.0",
116116
"react-native-builder-bob": "^0.18.0",
117117
"react-native-reanimated": "3.19.2",
118118
"react-test-renderer": "19.0.0",

0 commit comments

Comments
 (0)