From e57b7c69f066538ec73d394e6e06064dc66895f0 Mon Sep 17 00:00:00 2001 From: Stathis Iakovidis Date: Tue, 30 May 2023 16:04:10 +0300 Subject: [PATCH 1/2] Expose TouchableOpacity Props --- index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.tsx b/index.tsx index b4bb82e..1aefd05 100644 --- a/index.tsx +++ b/index.tsx @@ -5,6 +5,7 @@ import { Text, TextStyle, TouchableOpacity, + TouchableOpacityProps, View, ViewStyle, } from 'react-native'; @@ -17,7 +18,7 @@ const styles = StyleSheet.create({ }, }); -interface Props { +interface Props extends TouchableOpacityProps{ testID?: string; switchOn: boolean; onPress: () => void; From c9bd1f98833db386949579a555f1f66bc4d7f3c5 Mon Sep 17 00:00:00 2001 From: Stathis Iakovidis Date: Wed, 31 May 2023 15:21:17 +0300 Subject: [PATCH 2/2] add props to touchable opacity --- index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/index.tsx b/index.tsx index 1aefd05..4deb351 100644 --- a/index.tsx +++ b/index.tsx @@ -130,6 +130,7 @@ function SwitchToggle(props: Props): React.ReactElement { return (