diff --git a/index.tsx b/index.tsx index b4bb82e..4deb351 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; @@ -129,6 +130,7 @@ function SwitchToggle(props: Props): React.ReactElement { return (