This repository was archived by the owner on Aug 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,27 @@ dependencies {
32
32
}
33
33
```
34
34
35
- * Register Module (in MainActivity.java)
35
+ * Register Module >= 0.18 (in MainActivity.java)
36
+
37
+ ``` java
38
+ import com.burnweb.rnsimplealertdialog.RNSimpleAlertDialogPackage ; // <--- import
39
+
40
+ public class MainActivity extends ReactActivity {
41
+ ......
42
+
43
+ @Override
44
+ protected List<ReactPackage > getPackages () {
45
+ return Arrays . < ReactPackage > asList(
46
+ new MainReactPackage (),
47
+ new RNSimpleAlertDialogPackage (this )); // <------ add this line to your MainActivity class, don't forget the `this` argument in constructor
48
+ }
49
+
50
+ ......
51
+
52
+ }
53
+ ```
54
+
55
+ * Register Module <= 0.17 (in MainActivity.java)
36
56
37
57
``` java
38
58
import com.burnweb.rnsimplealertdialog.RNSimpleAlertDialogPackage ; // <--- import
@@ -50,7 +70,7 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand
50
70
.setBundleAssetName(" index.android.bundle" )
51
71
.setJSMainModuleName(" index.android" )
52
72
.addPackage(new MainReactPackage ())
53
- .addPackage(new RNSimpleAlertDialogPackage (this )) // <------ add this line to yout MainActivity class, don't forget the `this` argument in constructor
73
+ .addPackage(new RNSimpleAlertDialogPackage (this )) // <------ add this line to your MainActivity class, don't forget the `this` argument in constructor
54
74
.setUseDeveloperSupport(BuildConfig . DEBUG )
55
75
.setInitialLifecycleState(LifecycleState . RESUMED )
56
76
.build();
You can’t perform that action at this time.
0 commit comments