Skip to content

Commit a666a84

Browse files
committed
example: use onPressIn instead of onPress for the svg rect
1 parent e92d2af commit a666a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/src/screens/Cropper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export default function CropperScreen({route, navigation}) {
218218
fill="rgba(0,255,0,0.3)"
219219
stroke="green"
220220
strokeWidth={strokeWidth(idx == selectedIndex)}
221-
onPress={ ()=> setSelectedIndex(idx)}
221+
onPressIn={ ()=> setSelectedIndex(idx)}
222222
/>
223223
))}
224224
</Svg>

0 commit comments

Comments
 (0)