Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/native-components-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,9 +795,12 @@ public class MyPackage implements ReactPackage {
<TabItem value="kotlin">

```kotlin title="MainApplication.kt"
override fun getPackages() = PackageList(this).packages.apply {
add(MyPackage())
}
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage());
add(MyAppPackage())
}
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion docs/native-modules-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Locate ReactNativeHost’s `getPackages()` method and add your package to the pa
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
// add(MyReactNativePackage());
add(MyAppPackage())
}
```
Expand Down