Skip to content

Commit 01f4917

Browse files
committed
fix: Update docs
1 parent 81e819d commit 01f4917

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

docs/manual-setup.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,22 @@ For that you need to add::
121121

122122
We recommend leaving ``logLevel: "debug"`` since we look for specific ``sentry.properties``
123123
files depending on your flavors name.
124+
125+
Please make sure your ``MainApplication.java`` looks something like this::
126+
127+
.. sourcecode:: java
128+
...
129+
import io.sentry.RNSentryPackage;
130+
...
131+
132+
public class MainApplication extends Application implements ReactApplication {
133+
134+
....
135+
@Override
136+
protected List<ReactPackage> getPackages() {
137+
return Arrays.<ReactPackage>asList(
138+
new MainReactPackage(),
139+
new RNSentryPackage(MainApplication.this)
140+
);
141+
}
142+
...

examples

0 commit comments

Comments
 (0)