Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

Commit b929469

Browse files
committed
Update README
1 parent 6b53e16 commit b929469

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,27 @@ dependencies {
3232
}
3333
```
3434

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)
3656

3757
```java
3858
import com.burnweb.rnsimplealertdialog.RNSimpleAlertDialogPackage; // <--- import
@@ -50,7 +70,7 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand
5070
.setBundleAssetName("index.android.bundle")
5171
.setJSMainModuleName("index.android")
5272
.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
5474
.setUseDeveloperSupport(BuildConfig.DEBUG)
5575
.setInitialLifecycleState(LifecycleState.RESUMED)
5676
.build();

0 commit comments

Comments
 (0)