-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathRNInstabugReactnativePackage.java
40 lines (30 loc) · 1.33 KB
/
RNInstabugReactnativePackage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.instabug.reactlibrary;
import androidx.annotation.NonNull;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class RNInstabugReactnativePackage implements ReactPackage {
private static final String TAG = RNInstabugReactnativePackage.class.getSimpleName();
public RNInstabugReactnativePackage() {}
@NonNull
@Override
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();
modules.add(new RNInstabugReactnativeModule(reactContext));
modules.add(new RNInstabugBugReportingModule(reactContext));
modules.add(new RNInstabugCrashReportingModule(reactContext));
modules.add(new RNInstabugRepliesModule(reactContext));
modules.add(new RNInstabugAPMModule(reactContext));
modules.add(new RNInstabugSessionReplayModule(reactContext));
return modules;
}
@NonNull
@Override
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
return Collections.emptyList();
}
}