-
-
Notifications
You must be signed in to change notification settings - Fork 1k
[android] fix talkback on pressable #4017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9536fcf
35814ae
bca566a
ddc7874
61bee1f
feb7499
03d6451
ef091ac
674cd20
f5fb841
11f7445
733dd74
67fe0eb
f843e47
11cefaf
7521519
b21d5f9
12ef9f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,7 @@ import { PureNativeButton } from './GestureButtons'; | |
|
|
||
| import { PressabilityDebugView } from '../../handlers/PressabilityDebugView'; | ||
| import { INT32_MAX, isTestEnv } from '../../utils'; | ||
| import RNGestureHandlerModule from '../../RNGestureHandlerModule'; | ||
|
|
||
| const DEFAULT_LONG_PRESS_DURATION = 500; | ||
| const IS_TEST_ENV = isTestEnv(); | ||
|
|
@@ -257,7 +258,10 @@ const Pressable = (props: PressableProps) => { | |
| ); | ||
| }, | ||
| onTouchesUp: () => { | ||
| if (Platform.OS === 'android') { | ||
| if ( | ||
| Platform.OS === 'android' && | ||
| !RNGestureHandlerModule.isAccessibilityEnabled() | ||
| ) { | ||
|
||
| // Prevents potential soft-locks | ||
| stateMachine.reset(); | ||
| handleFinalize(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.