From 27b51f9de9f43fcf2cc71bfc0f34ed075d9a9867 Mon Sep 17 00:00:00 2001 From: ArrayZoneYour Date: Mon, 24 Jun 2019 00:49:14 +0800 Subject: [PATCH] feat(types): add missed containerStyle prop fix #974, fix #878, close #900 --- index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 067b8dbe..21cc080d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ -declare module 'react-native-swiper' { - import { ViewStyle } from 'react-native' - import { Component } from 'react' +import { ViewStyle, StyleProp } from 'react-native' +import { Component } from 'react' +declare module 'react-native-swiper' { interface SwiperProps { // Basic // If true, the scroll view's children are arranged horizontally in a row instead of vertically in a column. @@ -24,6 +24,8 @@ declare module 'react-native-swiper' { height?: number // See default style in source. style?: ViewStyle + // Customize the View container. + containerStyle?: StyleProp // Only load current index slide , loadMinimalSize slides before and after. loadMinimal?: boolean // see loadMinimal