react-native-app-intro-slider
Advanced tools
Comparing version 4.0.2 to 4.0.4
import * as React from 'react'; | ||
import { FlatList, FlatListProps, ViewStyle, NativeScrollEvent, GestureResponderEvent, LayoutChangeEvent } from 'react-native'; | ||
import { FlatList, FlatListProps, ViewStyle, NativeScrollEvent, GestureResponderEvent, LayoutChangeEvent, ListRenderItemInfo } from 'react-native'; | ||
declare type Props<ItemT> = { | ||
data: ItemT[]; | ||
renderItem: (a: any) => React.ReactNode; | ||
renderItem: (info: ListRenderItemInfo<ItemT> & { | ||
dimensions: { | ||
width: number; | ||
height: number; | ||
}; | ||
}) => React.ReactNode; | ||
renderSkipButton?: () => React.ReactNode; | ||
@@ -32,3 +37,3 @@ renderNextButton?: () => React.ReactNode; | ||
}; | ||
export default class AppIntroSlider<ItemT> extends React.Component<Props<ItemT>, State> { | ||
export default class AppIntroSlider<ItemT = any> extends React.Component<Props<ItemT>, State> { | ||
static defaultProps: { | ||
@@ -48,2 +53,4 @@ activeDotStyle: { | ||
showNextButton: boolean; | ||
showPrevButton: boolean; | ||
showSkipButton: boolean; | ||
bottomButton: boolean; | ||
@@ -56,5 +63,5 @@ }; | ||
}; | ||
flatList: FlatList | undefined; | ||
flatList: FlatList<ItemT> | undefined; | ||
goToSlide: (pageNum: number, triggerOnSlideChange?: boolean | undefined) => void; | ||
getListRef: () => FlatList<any> | undefined; | ||
getListRef: () => FlatList<ItemT> | undefined; | ||
_rtlSafeIndex: (i: number) => number; | ||
@@ -61,0 +68,0 @@ _renderItem: (flatListArgs: any) => JSX.Element; |
@@ -177,2 +177,4 @@ "use strict"; | ||
showNextButton: true, | ||
showPrevButton: false, | ||
showSkipButton: false, | ||
bottomButton: false, | ||
@@ -179,0 +181,0 @@ }; |
{ | ||
"name": "react-native-app-intro-slider", | ||
"version": "4.0.2", | ||
"version": "4.0.4", | ||
"description": "Simple and configurable app introduction slider for react native", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -173,6 +173,6 @@ # react-native-app-intro-slider | ||
| showDoneButton | `boolean` | `true` | Disable to hide the done button | | ||
| renderNextButton | `function` | renders a Text-component | Use to supply your own next button | | ||
| renderPrevButton | `function` | renders a Text-component | Use to supply your own prev button | | ||
| renderDoneButton | `function` | renders a Text-component | Use to supply your own done button | | ||
| renderSkipButton | `function` | renders a Text-component | Use to supply your own skip button | | ||
| renderNextButton | `function` | renders a Text-component | Use to supply your own next button. Has no effect if using `renderPagination`. | | ||
| renderPrevButton | `function` | renders a Text-component | Use to supply your own prev button . Has no effect if using `renderPagination` | | ||
| renderDoneButton | `function` | renders a Text-component | Use to supply your own done button. Has no effect if using `renderPagination` | | ||
| renderSkipButton | `function` | renders a Text-component | Use to supply your own skip button. Has no effect if using `renderPagination` | | ||
@@ -190,5 +190,5 @@ ### Methods | ||
* [Bottom buttons](https://github.com/Jacse/react-native-app-intro-slider/tree/master/examples/examples/BottomButton/index.js) | ||
* [Cstom buttons](https://github.com/Jacse/react-native-app-intro-slider/tree/master/examples/examples/CustomButton/index.js) | ||
* [Custom buttons](https://github.com/Jacse/react-native-app-intro-slider/tree/master/examples/examples/CustomButtons/index.js) | ||
* [Custom pagination with log in / sign up buttons](https://github.com/Jacse/react-native-app-intro-slider/tree/master/examples/examples/CustomPagination/index.js) | ||
* [Full-size background Images](https://github.com/Jacse/react-native-app-intro-slider/tree/master/examples/examples/FullBackgroundImage/index.js) | ||
* [RTL](https://github.com/Jacse/react-native-app-intro-slider/tree/master/examples/examples/RTL/index.js) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28526
340
0