New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-app-intro-slider

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-app-intro-slider - npm Package Compare versions

Comparing version 4.0.2 to 4.0.4

17

dist/index.d.ts
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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc