From 439456b355904d74d75327277a590d48d3beffdf Mon Sep 17 00:00:00 2001 From: Hyo Chan Jang Date: Sun, 27 Jan 2019 02:10:25 +0900 Subject: [PATCH 1/3] Remove BackAndroid. This will throw an error in `react-native@0.58+`. --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index deea38c..5259831 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,6 @@ var { TouchableWithoutFeedback, Dimensions, Easing, - BackAndroid, BackHandler, Platform, Modal, @@ -19,7 +18,7 @@ var { var createReactClass = require('create-react-class'); -var BackButton = BackHandler || BackAndroid; +var BackButton = BackHandler; var screen = Dimensions.get('window'); From af2b1af3d348cf1943787898706905945a46666e Mon Sep 17 00:00:00 2001 From: hyochan Date: Sun, 27 Jan 2019 02:13:47 +0900 Subject: [PATCH 2/3] Update readme. Add compatable version note. --- README.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e71db75..ff803f9 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ A react native component, easy, fully customizable, implementing the 'sw ## Example Check [index.js](https://github.com/maxs15/react-native-modalbox/blob/master/Example/index.ios.js) in the Example folder. +## Version note +| react-native | react-native-modalbox | +| <= 0.57 | <= 1.6.0 | +| >= 0.58 | >= 1.6.1 | + ## Properties | Prop | Default | Type | Description | diff --git a/package.json b/package.json index d15645e..7695a82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-modalbox", - "version": "1.6.0", + "version": "1.6.1", "description": "A component for react-native", "main": "index.js", "scripts": { From 6ab20258f6d74ecd8394e8060b889d26e7603d2f Mon Sep 17 00:00:00 2001 From: hyochan Date: Sun, 27 Jan 2019 02:19:01 +0900 Subject: [PATCH 3/3] Update readme table. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ff803f9..f382b76 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Check [index.js](https://github.com/maxs15/react-native-modalbox/blob/master/Exa ## Version note | react-native | react-native-modalbox | +| :------------ |:---------------:| | <= 0.57 | <= 1.6.0 | | >= 0.58 | >= 1.6.1 |