Open IvanIhnatsiuk opened 1 month ago
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
Hi @IvanIhnatsiuk! I've just tested that on my Samsung S20+ and Pixel 6a emulator - both work fine. To test that, I've added logs into onPress callbacks in RectButtons
. Could you provide a reproduction that we can look at?
@m-bert Hello, I think you can reproduce this in your example app. To reproduce this, I simply updated the App.tsx file to
import React from 'react';
import {
BorderlessButton,
GestureHandlerRootView,
} from 'react-native-gesture-handler';
import { Text } from 'react-native';
const press = () => console.log('pressed');
export default function App() {
return (
<GestureHandlerRootView style={{ justifyContent: 'center', flex: 1 }}>
<BorderlessButton onPress={press}>
<Text>Press me</Text>
</BorderlessButton>
</GestureHandlerRootView>
);
}
Please, let me know if you need more details :)
Hello @IvanIhnatsiuk! I've copied your code and everything is fine:
It also works on my physical Samsung S20+
I can see that you're using another emulator, I'll try to test that on Pixel 7
Okay, I've tested that on Pixel 7 Pro emulator and I still wasn't able to reproduce this issue.
Description
Hello, thanks for your library it is really good and very powerful 😎 .
I found an issue that when talkback is enabled, the onPress call occurs multiple times when interacting with the buttons.
https://github.com/software-mansion/react-native-gesture-handler/assets/86000012/8c37625f-75b7-4a8f-bce5-d20e29171b99
In the video the goBack callback was called twice, so I was navigated to the Accounts tab :)
Steps to reproduce
Snack or a link to a repository
https://github.com/software-mansion/react-native-gesture-handler
Gesture Handler version
2.15.0
React Native version
0.72.10
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
Pixel 7 pro
Acknowledgements
Yes