From cec66378827b41ed264300b30434aeb6f113edaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E7=9B=9B=E6=9D=B0?= Date: Thu, 27 Dec 2018 16:05:23 +0800 Subject: [PATCH] fix SwipeAction props type defination about left and right --- components/swipe-action/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/swipe-action/index.tsx b/components/swipe-action/index.tsx index 21dc832a5..15d6aea04 100644 --- a/components/swipe-action/index.tsx +++ b/components/swipe-action/index.tsx @@ -2,7 +2,10 @@ import React from 'react'; import { StyleProp, Text, TextStyle, View } from 'react-native'; import Swipeout, { SwipeoutButtonProperties, SwipeoutProperties } from 'react-native-swipeout'; -export interface SwipeActionProps extends SwipeoutProperties {} +export interface SwipeActionProps extends SwipeoutProperties { + left?: SwipeoutButtonProps[]; + right?: SwipeoutButtonProps[]; +} export interface SwipeoutButtonProps extends SwipeoutButtonProperties { style?: StyleProp & { backgroundColor: string }; }