Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,19 @@ import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost

class MainApplication : Application(), ReactApplication {
override val reactNativeHost: ReactNativeHost =
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> {
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return PackageList(this).packages
}

override fun getJSMainModuleName(): String = "index"

override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG

override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}

override val reactHost: ReactHost
get() = getDefaultReactHost(applicationContext, reactNativeHost)
override val reactHost: ReactHost by lazy {
getDefaultReactHost(
context = applicationContext,
packageList =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
},
)
}

override fun onCreate() {
super.onCreate()
Expand Down
Binary file modified FabricExample/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion FabricExample/android/gradlew
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
1 change: 0 additions & 1 deletion FabricExample/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ target 'KeyboardControllerFabricExample' do
)

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
Expand Down
14 changes: 7 additions & 7 deletions FabricExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@react-navigation/native-stack": "^6.11.0",
"@react-navigation/stack": "^6.4.1",
"lottie-react-native": "^7.3.4",
"react": "19.1.0",
"react-native": "0.81.4",
"react": "19.1.1",
"react-native": "0.82.0",
"react-native-advanced-input-mask": "^1.4.6",
"react-native-gesture-handler": "2.28.0",
"react-native-haptic-feedback": "2.3.3",
Expand All @@ -38,18 +38,18 @@
"@react-native-community/cli": "20.0.0",
"@react-native-community/cli-platform-android": "20.0.0",
"@react-native-community/cli-platform-ios": "20.0.0",
"@react-native/babel-preset": "0.81.4",
"@react-native/metro-config": "0.81.4",
"@react-native/typescript-config": "0.81.4",
"@react-native/babel-preset": "0.82.0",
"@react-native/metro-config": "0.82.0",
"@react-native/typescript-config": "0.82.0",
"@testing-library/jest-native": "^5.3.3",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "13.0.1",
"@types/jest": "^29.5.13",
"@types/react": "^19.1.0",
"@types/react": "^19.1.1",
"@types/react-test-renderer": "^19.1.0",
"jest": "^29.6.3",
"patch-package": "^6.4.7",
"react-test-renderer": "19.1.0"
"react-test-renderer": "19.1.1"
},
"jest": {
"preset": "react-native",
Expand Down
233 changes: 124 additions & 109 deletions FabricExample/yarn.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
},
"devDependencies": {
"@commitlint/config-conventional": "^11.0.0",
"@react-native/babel-preset": "0.81.4",
"@react-native/eslint-config": "0.81.4",
"@react-native/babel-preset": "0.82.0",
"@react-native/eslint-config": "0.82.0",
"@release-it/conventional-changelog": "^2.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.5.13",
Expand All @@ -111,8 +111,8 @@
"jest": "^29.6.3",
"pod-install": "^0.1.0",
"prettier": "^2.8.8",
"react": "19.1.0",
"react-native": "0.81.4",
"react": "19.1.1",
"react-native": "0.82.0",
"react-native-builder-bob": "^0.18.0",
"react-native-reanimated": "3.19.2",
"react-test-renderer": "19.0.0",
Expand Down
Loading
Loading