Apps built on : React Native 0.62.2
Tool used for Testing : Appium v1.17.1
Issue Description : The Child Element
create a class with following content:
import { Platform } from 'react-native';
export function accessibility(id?: string) {
return Platform.OS === 'android'
? { accessible: true, accessibilityLabel: id }
: { accessible: false, testID: id };
}
and import 'accessibility' function where you want to use then use it as props