Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ export default class Carousel extends Component {
this._handleScrollEnd = this._handleScrollEnd.bind(this);
}

componentWillMount() {
UNSAFE_componentWillMount() {
this._calculateGap(this.props);
}

componentDidMount() {
this._resetScrollPosition(false);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {

this.setState({
currentPage: nextProps.currentPage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 2 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down Expand Up @@ -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 <machadogj@gmail.com>.
Copyright (c) 2016 Gustavo Machado <machadogj@gmail.com>.