From c9218ea8d44fd31f382963c69b9c3a8f447e217c Mon Sep 17 00:00:00 2001 From: Emanuel Quimper Date: Mon, 20 Aug 2018 18:28:28 -0400 Subject: [PATCH] Add styling type to style. --- src/Touchable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Touchable.js b/src/Touchable.js index d6ac142..55de664 100644 --- a/src/Touchable.js +++ b/src/Touchable.js @@ -6,6 +6,7 @@ import { RectButton, BorderlessButton, } from 'react-native-gesture-handler'; +import { StyleProp, ViewStyle } from 'react-native'; type Props = { feedback: 'opacity' | 'highlight' | 'none', @@ -15,7 +16,7 @@ type Props = { onPress?: () => any, disabled?: boolean, hitSlop?: { top?: number, bottom?: number, left?: number, right?: number }, - style?: any, + style?: StyleProp, children?: React.Node, activeOpacity?: number, underlayColor?: string,