Skip to content

Commit 5c1ffd0

Browse files
committed
feat: upgrade example to react native 0.83
1 parent a9fbbfb commit 5c1ffd0

9 files changed

Lines changed: 726 additions & 507 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## Changed
11+
12+
- Update example app to React Native 0.83
13+
1014
## [0.17.3] - 2026-01-03
1115

1216
## Fixed

example/android/app/src/main/java/com/androidwidgetexample/MainApplication.kt

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,16 @@ import com.facebook.react.defaults.DefaultReactNativeHost
1212

1313
class MainApplication : Application(), ReactApplication {
1414

15-
override val reactNativeHost: ReactNativeHost =
16-
object : DefaultReactNativeHost(this) {
17-
override fun getPackages(): List<ReactPackage> =
15+
override val reactHost: ReactHost by lazy {
16+
getDefaultReactHost(
17+
context = applicationContext,
18+
packageList =
1819
PackageList(this).packages.apply {
1920
// Packages that cannot be autolinked yet can be added manually here, for example:
2021
// 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-
32-
override val reactHost: ReactHost
33-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
22+
},
23+
)
24+
}
3425

3526
override fun onCreate() {
3627
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/android/gradlew

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"@react-native-async-storage/async-storage": "^2.0.0",
1515
"@react-navigation/native": "^6.1.14",
1616
"@react-navigation/native-stack": "^6.9.22",
17-
"react": "19.1.0",
18-
"react-native": "0.81.4",
17+
"react": "19.2.0",
18+
"react-native": "0.83.0",
1919
"react-native-safe-area-context": "^5.5.2",
2020
"react-native-screens": "^4.16.0"
2121
},
@@ -26,10 +26,10 @@
2626
"@react-native-community/cli": "20.0.0",
2727
"@react-native-community/cli-platform-android": "20.0.0",
2828
"@react-native-community/cli-platform-ios": "20.0.0",
29-
"@react-native/babel-preset": "0.81.4",
30-
"@react-native/eslint-config": "0.81.4",
31-
"@react-native/metro-config": "0.81.4",
32-
"@react-native/typescript-config": "0.81.4",
29+
"@react-native/babel-preset": "0.83.0",
30+
"@react-native/eslint-config": "0.83.0",
31+
"@react-native/metro-config": "0.83.0",
32+
"@react-native/typescript-config": "0.83.0",
3333
"babel-plugin-module-resolver": "^4.1.0"
3434
},
3535
"engines": {

0 commit comments

Comments
 (0)