File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- import React , { forwardRef , useCallback } from "react" ;
1+ import React , { forwardRef } from "react" ;
22import {
33 GestureResponderEvent ,
44 Platform ,
@@ -135,11 +135,10 @@ const RNButton: React.FC<Partial<ButtonProps>> = forwardRef<
135135
136136 const isButtonDisabled = props . disabled || loading ;
137137
138- const handlePress = useCallback ( ( event : GestureResponderEvent ) => {
138+ const handlePress = ( event : GestureResponderEvent ) => {
139139 onPress && onPress ( event ) ;
140140 hapticEnabled && hapticMedium ?.( ) ;
141- // eslint-disable-next-line react-hooks/exhaustive-deps
142- } , [ ] ) ;
141+ } ;
143142
144143 /**
145144 * Button Prefix Component
@@ -356,7 +355,6 @@ const RNButton: React.FC<Partial<ButtonProps>> = forwardRef<
356355) ;
357356
358357RNButton . displayName = "RNButton" ;
359-
360358export const Button = createComponent < Partial < ButtonProps > > ( RNButton , {
361359 shouldMemo : true ,
362360} ) ;
You can’t perform that action at this time.
0 commit comments