Skip to content

Commit 5ec5cc3

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Refactor on ReactDelegate (#54415)
Summary: Pull Request resolved: #54415 This is a small refactor of ReactDelegate changelog: [internal] internal Reviewed By: alanleedev Differential Revision: D86218278 fbshipit-source-id: 13886e6c6b8d4759e7387927fd38f51f158dcf40
1 parent 963f7a5 commit 5ec5cc3

File tree

1 file changed

+7
-7
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react

1 file changed

+7
-7
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public open class ReactDelegate {
6868
launchOptions: Bundle?,
6969
) {
7070
this.activity = activity
71-
mainComponentName = appKey
71+
this.mainComponentName = appKey
7272
this.launchOptions = launchOptions
73-
doubleTapReloadRecognizer = DoubleTapReloadRecognizer()
73+
this.doubleTapReloadRecognizer = DoubleTapReloadRecognizer()
7474
this.reactNativeHost = reactNativeHost
7575
}
7676

@@ -81,9 +81,9 @@ public open class ReactDelegate {
8181
launchOptions: Bundle?,
8282
) {
8383
this.activity = activity
84-
mainComponentName = appKey
84+
this.mainComponentName = appKey
8585
this.launchOptions = launchOptions
86-
doubleTapReloadRecognizer = DoubleTapReloadRecognizer()
86+
this.doubleTapReloadRecognizer = DoubleTapReloadRecognizer()
8787
this.reactHost = reactHost
8888
}
8989

@@ -95,11 +95,11 @@ public open class ReactDelegate {
9595
launchOptions: Bundle?,
9696
fabricEnabled: Boolean,
9797
) {
98-
isFabricEnabled = fabricEnabled
98+
this.isFabricEnabled = fabricEnabled
9999
this.activity = activity
100-
mainComponentName = appKey
100+
this.mainComponentName = appKey
101101
this.launchOptions = launchOptions
102-
doubleTapReloadRecognizer = DoubleTapReloadRecognizer()
102+
this.doubleTapReloadRecognizer = DoubleTapReloadRecognizer()
103103
this.reactNativeHost = reactNativeHost
104104
}
105105

0 commit comments

Comments
 (0)