We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67fe0eb commit f843e47Copy full SHA for f843e47
1 file changed
packages/react-native-gesture-handler/src/components/Pressable/stateDefinitions.ts
@@ -132,10 +132,9 @@ export function getStatesConfig(
132
screenReaderActive: boolean
133
): StateDefinition[] {
134
if (Platform.OS === 'android') {
135
- if (screenReaderActive) {
136
- return getAndroidAccessibilityStatesConfig(handlePressIn, handlePressOut);
137
- }
138
- return getAndroidStatesConfig(handlePressIn, handlePressOut);
+ return screenReaderActive
+ ? getAndroidAccessibilityStatesConfig(handlePressIn, handlePressOut)
+ : getAndroidStatesConfig(handlePressIn, handlePressOut);
139
} else if (Platform.OS === 'ios') {
140
return getIosStatesConfig(handlePressIn, handlePressOut);
141
} else if (Platform.OS === 'web') {
0 commit comments