From 7a7ad1fe0629002aaaa080cf809f11b6e9728c8f Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Tue, 17 Oct 2017 20:16:07 +0100 Subject: [PATCH 1/2] refactor: Drop rn-app-intro in favor of react-native-swiper --- package.json | 4 ++-- src/auth/screens/login.screen.js | 22 ++++++++++----------- yarn.lock | 34 +++++--------------------------- 3 files changed, 17 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index de991565f..a4d95f993 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "react-native-photo-view": "^1.5.2", "react-native-safari-view": "^2.0.0", "react-native-search-bar": "^3.0.0", + "react-native-swiper": "^1.5.13", "react-native-syntax-highlighter": "^1.2.1", "react-native-table-component": "^1.0.5", "react-native-vector-icons": "^4.4.0", @@ -86,8 +87,7 @@ "redux-persist": "^4.3.1", "redux-persist-transform-encrypt": "^1.0.2", "redux-thunk": "^2.2.0", - "reselect": "^3.0.1", - "rn-app-intro": "^0.0.4" + "reselect": "^3.0.1" }, "devDependencies": { "@commitlint/cli": "^3.1.0", diff --git a/src/auth/screens/login.screen.js b/src/auth/screens/login.screen.js index 6271beea8..045da0f25 100644 --- a/src/auth/screens/login.screen.js +++ b/src/auth/screens/login.screen.js @@ -14,7 +14,7 @@ import { Modal, } from 'react-native'; import { Button, Icon } from 'react-native-elements'; -import AppIntro from 'rn-app-intro'; +import Swiper from 'react-native-swiper'; import queryString from 'query-string'; import { ViewContainer } from 'components'; @@ -99,6 +99,10 @@ const styles = StyleSheet.create({ justifyContent: 'center', alignItems: 'center', }, + signInContainer: { + position: 'absolute', + bottom: 80, + }, slide: { flex: 1, justifyContent: 'center', @@ -269,17 +273,11 @@ class Login extends Component { - - - - - + - +