react-native icon indicating copy to clipboard operation
react-native copied to clipboard

onAccessibilityTap not working for android

Open shannon-voda opened this issue 1 year ago • 6 comments

Description

onAccessibilityTap on a View works on iOS but does not work on Android.

image

Docs do not mention only working for iOS

Version

0.66.2

Output of npx react-native info

System: OS: macOS 12.4 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 1.88 GB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm Watchman: 2021.09.13.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 29, 30, 31 Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0 System Images: android-21 | ARM EABI v7a, android-22 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode: 13.4/13F17a - /usr/bin/xcodebuild Languages: Java: 1.8.0_321 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.2 => 0.66.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Activate talkback Tap on component with action Double tap to activate action Action will not activate

Snack, code example, screenshot, or link to a repository

<View
        style={styles(this.context.theme).logoRow}
        accessible
        onAccessibilityTap={onPress}
        accessibilityRole='button'
        accessibilityHint={I18n.t('accessibility.dashboard.logoAndNameHint')}
      >
        <View style={{ flex: 0.3 }}>
          <Image style={styles(this.context.theme).logo} source={Images.redLogo} accessibilityIgnoresInvertColors />
        </View>
        {selectedServiceId && (
          <View style={{ flex: 0.7 }}>
            <MVAServiceName serviceId={selectedServiceId} onPress={onPress} />
          </View>
        )}
      </View>

shannon-voda avatar Jul 06 '22 02:07 shannon-voda

Same issue here

Droidking18 avatar Jul 28 '22 12:07 Droidking18

I also have this issue.

s-mirsky avatar Aug 31 '22 13:08 s-mirsky

Have recently updated to latest RN Version 0.69.3 and still encounter this issue.

shannon-voda avatar Aug 31 '22 21:08 shannon-voda

I'm experiencing the same issue

YanislavSpaceIQ avatar Sep 06 '22 13:09 YanislavSpaceIQ

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Apr 18 '23 18:04 github-actions[bot]

It seems like the property onAccessibilityTap is straight-up unimplemented on Android, as I couldn't any code referencing it on the Android code.

BasixKOR avatar Jun 05 '23 05:06 BasixKOR