Skip to content

Commit 013dd8f

Browse files
mdvaccacortinico
andauthored
Update website/versioned_docs/version-0.67/integration-with-android-fragment.md
Co-authored-by: Nicola Corti <corti.nico@gmail.com>
1 parent 15abb83 commit 013dd8f

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

website/versioned_docs/version-0.67/integration-with-android-fragment.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,20 @@ Override the required methods `getUseDeveloperSupport`, `getPackages` and `getRe
4242
<TabItem value="kotlin">
4343

4444
```kotlin
45-
class MyReactApplication: Application(), ReactApplication {
46-
45+
class MyReactApplication : Application(), ReactApplication {
4746
override fun onCreate() {
4847
super.onCreate()
4948
SoLoader.init(this, false)
5049
}
51-
52-
private val reactNativeHost = object : ReactNativeHost(this) {
53-
54-
override fun getUseDeveloperSupport() = BuildConfig.DEBUG
55-
56-
override fun getPackages(): List<ReactPackage> {
57-
val packages = PackageList(this).getPackages().toMutableList()
58-
// Packages that cannot be autolinked yet can be added manually here
59-
return packages
50+
private val reactNativeHost =
51+
object : ReactNativeHost(this) {
52+
override fun getUseDeveloperSupport() = BuildConfig.DEBUG
53+
override fun getPackages(): List<ReactPackage> {
54+
val packages = PackageList(this).getPackages().toMutableList()
55+
// Packages that cannot be autolinked yet can be added manually here
56+
return packages
57+
}
6058
}
61-
}
62-
6359
override fun getReactNativeHost(): ReactNativeHost = reactNativeHost
6460
}
6561
```

0 commit comments

Comments
 (0)