Open yanivbd opened 7 months ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.71.15. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Looks like a duplicate of https://github.com/facebook/react-native/issues/32969
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
Looks like a duplicate of #32969
Well, I'm not sure this is the same, the one you sent is talking about a problem of a text, mine is talking something that becomes not accessible
I found that this bug is not present on a scroll view. So, although not ideal, a potential workaround could be to use a custom View component which you can then swap back when the bug is resolved. This custom View could be something like this:
import { PropsWithChildren } from 'react';
import { Platform, View as RNView, ViewProps } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
const View = ({ children, ...props }: ViewProps & PropsWithChildren) =>
// Workaround for https://github.com/facebook/react-native/issues/42359
Platform.OS === 'android' && props.testID ? (
<ScrollView enabled={false} {...props}>
{children}
</ScrollView>
) : (
<RNView {...props}>{children}</RNView>
);
export default View;
Description
I have the following React Native code:
I'm working on accessibility to my app and found that after adding the
testID
above, I cannot focus on each one of the texts on talkback mode, the talkback focus them together only. This is reproduced in android only. When removing thetestID
, each of the texts is focused separately as needed for the talkback. But since it is a big app with a lot of tests, removingtestID
s from the components is not an option.It is not reproduced in iOS.
Can you please advise? Thanks
Steps to reproduce
React Native Version
0.71.13
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
N/A
Screenshots and Videos
No response