From 0483fe5ea43a865b78aef088c703bed2e361870f Mon Sep 17 00:00:00 2001 From: Oliver Welter Date: Wed, 26 Feb 2020 20:31:33 +0100 Subject: [PATCH] =?UTF-8?q?[react-native-app-intro-slider]=20-=20Use=20typ?= =?UTF-8?q?e=20ViewStyle=20for=20prope=E2=80=A6=20(#42641)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Changes type of buttonStyle and paginationStyle to ViewStyle * Remove obsolete type import * Update definitions by section --- types/react-native-app-intro-slider/index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/types/react-native-app-intro-slider/index.d.ts b/types/react-native-app-intro-slider/index.d.ts index e759047236..7f7edfefc8 100644 --- a/types/react-native-app-intro-slider/index.d.ts +++ b/types/react-native-app-intro-slider/index.d.ts @@ -1,11 +1,12 @@ // Type definitions for react-native-app-intro-slider 3.0 // Project: https://github.com/jacse/react-native-app-intro-slider // Definitions by: Haseeb Majid +// Oliver Welter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.1 import * as React from 'react'; -import { ButtonProps, TextProps, ViewStyle } from 'react-native'; +import { TextProps, ViewStyle } from 'react-native'; export interface AppIntroProps { skipLabel?: string; @@ -13,11 +14,11 @@ export interface AppIntroProps { nextLabel?: string; prevLabel?: string; bottomButton?: boolean; - buttonStyle?: ButtonProps; + buttonStyle?: ViewStyle; buttonTextStyle?: TextProps; dotStyle?: ViewStyle; activeDotStyle?: ViewStyle; - paginationStyle?: TextProps; + paginationStyle?: ViewStyle; hidePagination?: boolean; renderNextButton?: () => void; renderPrevButton?: () => void;