Skip to content

Commit

Permalink
Update manual-setup.mdx
Browse files Browse the repository at this point in the history
I believe the getPackages Kotlin example is not valid Kotlin (it may have been ported from the react-native example comment - which now has a ticket to update the application of adding packages facebook/react-native#41856)
  • Loading branch information
vbro1293 authored Jan 2, 2024
1 parent a30f2b0 commit fc80550
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/platforms/react-native/manual-setup/manual-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,10 @@ public class MainApplication extends Application implements ReactApplication {
import io.sentry.react.RNSentryPackage

class MainApplication() : Application(), ReactApplication {
override fun getPackages():List<ReactPackage> {
val packages = new PackageList(this).getPackages();
packages.add(new RNSentryPackage());
return packages;
}
override fun getPackages():List<ReactPackage> =
PackageList(this).packages.apply {
add(RNSentryPackage())
}
}
```

Expand Down

0 comments on commit fc80550

Please sign in to comment.