diff --git a/template/template/android/app/src/main/java/com/helloworld/MainApplication.kt b/template/template/android/app/src/main/java/com/helloworld/MainApplication.kt index 5c868b4..a2f5cac 100644 --- a/template/template/android/app/src/main/java/com/helloworld/MainApplication.kt +++ b/template/template/android/app/src/main/java/com/helloworld/MainApplication.kt @@ -15,11 +15,11 @@ class MainApplication : Application(), ReactApplication { override val reactNativeHost: ReactNativeHost = object : DefaultReactNativeHost(this) { - override fun getPackages(): List { - // Packages that cannot be autolinked yet can be added manually here, for example: - // packages.add(new MyReactNativePackage()); - return PackageList(this).packages - } + override fun getPackages(): List = + PackageList(this).packages.apply { + // Packages that cannot be autolinked yet can be added manually here, for example: + // add(MyReactNativePackage()) + } override fun getJSMainModuleName(): String = "index"