mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Cleanup the Kotlin code in the .defaults package
Summary: With the IDE autocompletion now working \o/ I was able to apply some suggestions to the Kotlin code I wrote inside the .defaults package (like remove redudant qualifiers and similar). Changelog: [Internal] [Changed] - Cleanup the Kotlin code in the .defaults package Reviewed By: cipolleschi Differential Revision: D39348983 fbshipit-source-id: b443a6be179c85d2a4f4293051c4f26af93eb5f1
This commit is contained in:
1 parent
5e1c4d4203
commit
5cb02ee5be
4 files changed
+15
-38
No files matched your search
+3
-3
@@ -25,8 +25,8 @@ import com.facebook.react.ReactRootView
|
||||
open class DefaultReactActivityDelegate(
|
||||
activity: ReactActivity,
|
||||
mainComponentName: String,
|
||||
val fabricEnabled: Boolean = false,
|
||||
val concurrentRootEnabled: Boolean = false
|
||||
private val fabricEnabled: Boolean = false,
|
||||
private val concurrentRootEnabled: Boolean = false
|
||||
) : ReactActivityDelegate(activity, mainComponentName) {
|
||||
|
||||
/**
|
||||
@@ -42,5 +42,5 @@ open class DefaultReactActivityDelegate(
|
||||
}
|
||||
|
||||
override fun createRootView(): ReactRootView =
|
||||
ReactRootView(getContext()).apply { setIsFabric(fabricEnabled) }
|
||||
ReactRootView(context).apply { setIsFabric(fabricEnabled) }
|
||||
}
|
||||
Reference in new issue
Block a user