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

The 'accessibilityLabel' prop is not accepting by the component. Automation framework is unable to find test ID's.

Open vetrivendhan48 opened this issue 3 years ago • 1 comments

Snippet

Toast.show(_localize(message), {
            // opacity: 1,
            duration: Toast.durations.LONG,
            backgroundColor: isError ? '#CC0000' : '#007E33',
            position: Toast.positions.TOP,
            shadow: true,
            animation: true,
            hideOnPress: true,
            delay: 0,
            textStyle: { flex: 1, fontSize: 13 },
            onShow: () => {
                // isCommonToastActive = true
            },
            onShown: () => {
                // calls on toast\`s appear animation end.
            },
            onHide: () => {
                // calls on toast\`s hide animation start.
            },
            onHidden: () => {
                // isCommonToastActive = false
            },
            testID: `toast message`,
            accessibilityLabel: `toast message`
        });

The prop accessibilityLabel is not displayed in automation test tools(Testproject). Is there is any other way to achieve this? Thanks.

vetrivendhan48 avatar Dec 29 '21 04:12 vetrivendhan48

+1 would love to have accessibilityLabel ... :'(

Take a look at This PR

seba9999 avatar Jan 14 '22 15:01 seba9999