[react-native-app-intro-slider] - Use type ViewStyle for prope… (#42641)

* Changes type of buttonStyle and paginationStyle to ViewStyle

* Remove obsolete type import

* Update definitions by section
This commit is contained in:
Oliver Welter
2020-02-26 11:31:33 -08:00
committed by GitHub
parent 4dab2b15db
commit 0483fe5ea4
+4 -3
View File
@@ -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 <https://github.com/hmajid2301>
// Oliver Welter <https://github.com/oliverwelter>
// 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;