From 5ec5cc3a340af05691e342b75e7abf79144ec5c4 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 4 Nov 2025 18:25:02 -0800 Subject: [PATCH] Refactor on ReactDelegate (#54415) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54415 This is a small refactor of ReactDelegate changelog: [internal] internal Reviewed By: alanleedev Differential Revision: D86218278 fbshipit-source-id: 13886e6c6b8d4759e7387927fd38f51f158dcf40 --- .../main/java/com/facebook/react/ReactDelegate.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt index 18a5193763c..367516c289e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt @@ -68,9 +68,9 @@ public open class ReactDelegate { launchOptions: Bundle?, ) { this.activity = activity - mainComponentName = appKey + this.mainComponentName = appKey this.launchOptions = launchOptions - doubleTapReloadRecognizer = DoubleTapReloadRecognizer() + this.doubleTapReloadRecognizer = DoubleTapReloadRecognizer() this.reactNativeHost = reactNativeHost } @@ -81,9 +81,9 @@ public open class ReactDelegate { launchOptions: Bundle?, ) { this.activity = activity - mainComponentName = appKey + this.mainComponentName = appKey this.launchOptions = launchOptions - doubleTapReloadRecognizer = DoubleTapReloadRecognizer() + this.doubleTapReloadRecognizer = DoubleTapReloadRecognizer() this.reactHost = reactHost } @@ -95,11 +95,11 @@ public open class ReactDelegate { launchOptions: Bundle?, fabricEnabled: Boolean, ) { - isFabricEnabled = fabricEnabled + this.isFabricEnabled = fabricEnabled this.activity = activity - mainComponentName = appKey + this.mainComponentName = appKey this.launchOptions = launchOptions - doubleTapReloadRecognizer = DoubleTapReloadRecognizer() + this.doubleTapReloadRecognizer = DoubleTapReloadRecognizer() this.reactNativeHost = reactNativeHost }