diff --git a/AppIntro.d.ts b/AppIntro.d.ts new file mode 100644 index 0000000..1666c2d --- /dev/null +++ b/AppIntro.d.ts @@ -0,0 +1,30 @@ +declare module "react-native-app-intro" { + import * as React from 'react'; + + export interface AppIntroProperties extends React.Props{ + dotColor?: string, + activeDotColor?: string, + rightTextColor?: string, + leftTextColor?: string, + onSlideChange?: Function, + onSkipBtnClick?: Function, + onDoneBtnClick?: Function, + onNextBtnClick?: Function, + pageArray?: Array, + doneBtnLabel?: string | React.ReactElement, + skipBtnLabel?: string | React.ReactElement, + nextBtnLabel?: string | React.ReactElement, + customStyles?: object, + defaultIndex?: number, + showSkipButton?: boolean, + showDoneButton?: boolean, + showDots?: boolean, + } + + export interface AppIntroStatic extends React.NativeMethodsMixin, React.ComponentClass{} + + var AppIntro: AppIntroStatic; + type AppIntro = AppIntroStatic; + + export default AppIntro; +} \ No newline at end of file diff --git a/package.json b/package.json index ed3fbd5..b100e98 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "react-native-app-intro", - "version": "1.1.5", + "version": "1.1.6", "description": "react-native-app-intro is a react native plugin implementing a parallax effect welcome page using base on react-native-swiper , similar to the one found in Google's app like Sheet, Drive, Docs...", "main": "AppIntro.js", + "typings": "AppIntro.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },