diff --git a/index.js b/index.js index fc9d939..9906dbf 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,7 @@ export default class Carousel extends Component { this._handleScrollEnd = this._handleScrollEnd.bind(this); } - componentWillMount() { + UNSAFE_componentWillMount() { this._calculateGap(this.props); } @@ -68,7 +68,7 @@ export default class Carousel extends Component { this._resetScrollPosition(false); } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { this.setState({ currentPage: nextProps.currentPage diff --git a/package.json b/package.json index ff07cb1..8ca0f4d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-carousel-control", + "name": "@amkayondo/react-native-carousel-control", "version": "2.0.1", "description": "React Native Carousel control with support for iOS and Android.", "main": "index.js", diff --git a/readme.md b/readme.md index 4702630..9e3fcb1 100644 --- a/readme.md +++ b/readme.md @@ -9,9 +9,8 @@ React < 16 -> 1.x.x ## Installation ``` -npm install react-native-carousel-control --save +Previous Version - npm install react-native-carousel-control --save ``` - ## Usage ``` @@ -93,4 +92,4 @@ How much users have to swipe to go to the next/prev page. Default: 0.5 (half the The MIT License (MIT) -Copyright (c) 2016 Gustavo Machado . \ No newline at end of file +Copyright (c) 2016 Gustavo Machado .