@@ -88,26 +88,26 @@ const styles = StyleSheet.create({
8888
8989## Props
9090
91- | Prop | Default | Type | Description |
91+ | Prop | Default | Type | Description |
9292| :--------------------- | :-----------------------------------------------: | :-------------------: | :------------------------------------------------------------------- |
93- | data | _ not required if children is used_ | ` array ` | Data to use in renderItem |
94- | children | - | ` node ` | Children elements |
95- | renderItem | _ not required if children is used_ | ` func ` | Takes an item from data and renders it into the list |
96- | onMomentumScrollEnd | - | ` func ` | Called after scroll end and the first parameter is the current index |
97- | vertical | false | ` bool ` | Show vertical swiper |
98- | index | 0 | ` number ` | Index to start |
99- | renderAll | false | ` bool ` | Render all the items before display it |
93+ | data | _ not required if children is used_ | ` array ` | Data to use in renderItem |
94+ | children | - | ` node ` | Children elements |
95+ | renderItem | _ not required if children is used_ | ` func ` | Takes an item from data and renders it into the list |
96+ | onMomentumScrollEnd | - | ` func ` | Called after scroll end and the first parameter is the current index |
97+ | vertical | false | ` bool ` | Show vertical swiper |
98+ | index | 0 | ` number ` | Index to start |
99+ | renderAll | false | ` bool ` | Render all the items before display it |
100100| ** Pagination** |
101- | showPagination | false | ` bool ` | Show pagination |
102- | paginationDefaultColor | gray | ` string ` | Pagination color |
103- | paginationActiveColor | white | ` string ` | Pagination color |
104- | paginationStyle | {} | ` ViewPropTypes.style ` | Style object for container |
105- | paginationStyleItem | {} | ` ViewPropTypes.style ` | Style object for item (dot) |
106- | PaginationComponent | [ Component] ( ./src/components/Pagination/index.js ) | ` node ` | Overwrite Pagination component |
101+ | showPagination | false | ` bool ` | Show pagination |
102+ | paginationDefaultColor | gray | ` string ` | Pagination color |
103+ | paginationActiveColor | white | ` string ` | Pagination color |
104+ | paginationStyle | {} | ` ViewPropTypes.style ` | Style object for container |
105+ | paginationStyleItem | {} | ` ViewPropTypes.style ` | Style object for item (dot) |
106+ | PaginationComponent | [ Component] ( ./src/components/Pagination/index.js ) | ` node ` | Overwrite Pagination component |
107107| ** Autoplay** |
108- | autoplay | false | ` bool ` | Change index automatically |
109- | autoplayDelay | 3 | ` number ` | Delay between every page |
110- | autoplayLoop | false | ` bool ` | Continue playing after reach end |
108+ | autoplay | false | ` bool ` | Change index automatically |
109+ | autoplayDelay | 3 | ` number ` | Delay between every page |
110+ | autoplayLoop | false | ` bool ` | Continue playing after reach end |
111111
112112** More props**
113113
@@ -118,10 +118,10 @@ autoplayDirection: PropTypes.bool.isRequired, -->
118118
119119## Functions
120120
121- | Function name | Use |
122- | -----------------| ----------------------------------------------------|
123- | scrollToIndex | Forces the scroll of the swiper to a precise index |
124- | getCurrentIndex | Returns the current index inside the swiper |
121+ | Name | Params | Use |
122+ | : -------------- | : ---------------------------------- | : ------------------------------------------------- |
123+ | scrollToIndex | (index: ` number ` , animated: ` bool ` ) | Forces the scroll of the swiper to a precise index |
124+ | getCurrentIndex | - | Returns the current index inside the swiper |
125125
126126
127127## Limitations
0 commit comments