@@ -11,8 +11,8 @@ import {
1111 type TouchableWithoutFeedbackProps
1212} from 'react-native' ;
1313
14- import { useTheme } from '../theme' ;
15- import { isIOS } from '../lib/methods/helpers' ;
14+ import { useTheme } from '../../ theme' ;
15+ import { isIOS } from '../../ lib/methods/helpers' ;
1616
1717export interface ITouchProps extends TouchableWithoutFeedbackProps {
1818 children : React . ReactNode ;
@@ -29,7 +29,7 @@ export interface ITouchProps extends TouchableWithoutFeedbackProps {
2929
3030const Component = isIOS ? TouchableOpacity : TouchableNativeFeedback ;
3131
32- const Touchable = React . forwardRef < View , ITouchProps > (
32+ const Touch = React . forwardRef < View , ITouchProps > (
3333 (
3434 {
3535 children,
@@ -78,10 +78,9 @@ const Touchable = React.forwardRef<View, ITouchProps>(
7878 marginStart,
7979 marginTop
8080 } ;
81- const androidProps = isIOS
81+ const touchableProps = isIOS
8282 ? { }
8383 : { background : TouchableNativeFeedback . Ripple ( android_rippleColor ?? colors . surfaceNeutral , false ) } ;
84- const touchableProps = isIOS ? { activeOpacity : 1 } : { } ;
8584
8685 return (
8786 < Component
@@ -90,7 +89,6 @@ const Touchable = React.forwardRef<View, ITouchProps>(
9089 style = { [ rectButtonStyle , marginStyles , { backgroundColor, borderRadius } ] }
9190 disabled = { ! enabled }
9291 { ...touchableProps }
93- { ...androidProps }
9492 { ...props } >
9593 < View
9694 accessible = { accessible }
@@ -107,4 +105,4 @@ const Touchable = React.forwardRef<View, ITouchProps>(
107105 }
108106) ;
109107
110- export default Touchable ;
108+ export default Touch ;
0 commit comments