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

Commit 9782667

Browse files
committed
- Minor compatibility upgrades
1 parent 6ffc5fb commit 9782667

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ android {
1717
defaultConfig {
1818
minSdkVersion 16
1919
targetSdkVersion 22
20-
versionCode 5
21-
versionName "1.0.8"
20+
versionCode 6
21+
versionName "1.0.9"
2222
}
2323

2424
lintOptions {

android/src/main/java/com/burnweb/rnsimplealertdialog/RNSimpleAlertDialogPackage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactConte
2222
return modules;
2323
}
2424

25-
@Override
25+
// Deprecated RN 0.47
2626
public List<Class<? extends JavaScriptModule>> createJSModules() {
2727
return Collections.emptyList();
2828
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AlertIOS, Platform, NativeModules } from 'react-native';
88

99
const SimpleAlertAndroid = NativeModules.SimpleAlertAndroid;
1010

11-
let Buttons = {
11+
const Buttons = {
1212
POSITIVE_BUTTON: "POSITIVE_BUTTON",
1313
NEGATIVE_BUTTON: "NEGATIVE_BUTTON",
1414
NEUTRAL_BUTTON: "NEUTRAL_BUTTON",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-simpledialog-android",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "React Native Android module to use Android's AlertDialog - same idea of AlertIOS",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)