diff --git a/AppIntro.js b/AppIntro.js index 52b42d9..9169445 100644 --- a/AppIntro.js +++ b/AppIntro.js @@ -1,5 +1,6 @@ import assign from 'assign-deep'; -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { StatusBar, StyleSheet, @@ -11,7 +12,9 @@ import { Image, Platform, } from 'react-native'; + import Swiper from 'react-native-swiper'; + import DoneButton from './components/DoneButton'; import SkipButton from './components/SkipButton'; import RenderDots from './components/Dots'; @@ -105,8 +108,8 @@ const defaulStyles = { } export default class AppIntro extends Component { - constructor(props) { - super(props); + constructor(props, context) { + super(props, context); this.styles = StyleSheet.create(assign({}, defaulStyles, props.customStyles)); diff --git a/package.json b/package.json index ed3fbd5..e4403f2 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "homepage": "https://github.com/fuyaode/react-native-app-intro#readme", "dependencies": { "assign-deep": "^0.4.5", - "react-native-swiper": "git+https://github.com/FuYaoDe/react-native-swiper.git" + "prop-types": "^15.6.2", + "react-native-swiper": "git+https://github.com/revdapp/react-native-swiper.git" } } diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..11118e0 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,54 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +assign-deep@^0.4.5: + version "0.4.7" + resolved "https://registry.yarnpkg.com/assign-deep/-/assign-deep-0.4.7.tgz#7f66886a0bdae6d652abb1497f6edfc2c7ab14cf" + dependencies: + assign-symbols "^0.1.1" + is-primitive "^2.0.0" + kind-of "^5.0.2" + +assign-symbols@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-0.1.1.tgz#cb025944ef4ec8a3693f086e9e112c74e3a0fed9" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + +js-tokens@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + +kind-of@^5.0.2: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + +loose-envify@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" + dependencies: + js-tokens "^3.0.0" + +object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +prop-types@^15.6.2: + version "15.6.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" + dependencies: + loose-envify "^1.3.1" + object-assign "^4.1.1" + +"react-native-swiper@git+https://github.com/revdapp/react-native-swiper.git": + version "1.4.4" + resolved "git+https://github.com/revdapp/react-native-swiper.git#f8cbe07ac215eaec04750f12381858fd78f09f11" + dependencies: + react-timer-mixin "^0.13.3" + +react-timer-mixin@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz#0da8b9f807ec07dc3e854d082c737c65605b3d22"