|
22 | 22 | > see: [ROADMAP.md](ROADMAP.md) |
23 | 23 |
|
24 | 24 | ## Changelogs |
| 25 | +- **[1.5.6]** |
| 26 | + + Fix [#16](https://github.com/leecade/react-native-swiper/issues/16), [#36](https://github.com/leecade/react-native-swiper/issues/36), [#371](https://github.com/leecade/react-native-swiper/issues/371), [#410](https://github.com/leecade/react-native-swiper/issues/410), [#411](https://github.com/leecade/react-native-swiper/issues/411), [#422](https://github.com/leecade/react-native-swiper/issues/422), [#468](https://github.com/leecade/react-native-swiper/issues/468) Fix landscape orientation auto resize! (thanks [@ahmed3mar](https://github.com/ahmed3mar), [@timmywil](https://github.com/timmywil)) |
| 27 | + + Add containerStyle prop to customize the view container. |
| 28 | + |
| 29 | +- [1.5.5] |
| 30 | + + Update: using PropTypes from prop-types and Change View.propTypes to ViewPropTypes |
25 | 31 |
|
26 | | -- **[1.5.4]** |
| 32 | + |
| 33 | +- [1.5.4] |
27 | 34 | + Added easily accessible pagination point manipulation: use `dotColor` / `activeDotColor` and `dotStyle` / `activeDotStyle` (thanks [@denizs](https://github.com/denizs)) |
28 | 35 | + Added scrollEnabled prop to documentation (thanks [@ibandominguez](https://github.com/ibandominguez)) |
29 | 36 |
|
|
45 | 52 |
|
46 | 53 | ### [examples/components/Basic](https://github.com/leecade/react-native-swiper/blob/master/examples/components/Basic) |
47 | 54 |
|
48 | | - |
| 55 | + |
49 | 56 |
|
50 | 57 | ### [examples/components/Swiper](https://github.com/leecade/react-native-swiper/blob/master/examples/components/Swiper) |
51 | 58 |
|
52 | | - |
| 59 | + |
53 | 60 |
|
54 | 61 | ### [examples/components/SwiperNumber](https://github.com/leecade/react-native-swiper/blob/master/examples/components/SwiperNumber) |
55 | 62 |
|
56 | | - |
| 63 | + |
57 | 64 |
|
58 | 65 | ### [examples/components/Phone](https://github.com/leecade/react-native-swiper/blob/master/examples/components/Phone) |
59 | 66 |
|
60 | | - |
| 67 | + |
61 | 68 |
|
62 | 69 | ### [examples/components/LoadMinimal](https://github.com/leecade/react-native-swiper/blob/master/examples/components/LoadMinimal) |
63 | 70 |
|
64 | | - |
65 | | - |
66 | | -### [examples/components/PhotoView](https://github.com/leecade/react-native-swiper/blob/master/examples/components/PhotoView) |
67 | | - |
68 | | - |
| 71 | + |
69 | 72 |
|
70 | | -> with [react-native-photo-view](https://github.com/alwx/react-native-photo-view) |
71 | 73 |
|
72 | 74 | ## Getting Started |
73 | 75 |
|
@@ -96,7 +98,7 @@ $ npm i react-native-swiper --save |
96 | 98 | - Install `react-native` first |
97 | 99 |
|
98 | 100 | ```bash |
99 | | -$ npm i react-native -g |
| 101 | +$ npm i react-native-cli -g |
100 | 102 | ``` |
101 | 103 |
|
102 | 104 | - Initialization of a react-native project |
@@ -178,6 +180,7 @@ AppRegistry.registerComponent('myproject', () => swiper); |
178 | 180 | | index | 0 | `number` | Index number of initial slide. | |
179 | 181 | | showsButtons | false | `bool` | Set to `true` make control buttons visible. | |
180 | 182 | | autoplay | false | `bool` | Set to `true` enable auto play mode. | |
| 183 | +| onIndexChanged | (index) => null | `func` | Called with the new index when the user swiped | |
181 | 184 |
|
182 | 185 | #### Custom basic style & content |
183 | 186 |
|
|
0 commit comments