magicismight / react-native-root-toast

react native toast like component, pure javascript solution
MIT License
2.08k stars 403 forks source link

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

Open vetrivendhan48 opened 2 years ago

vetrivendhan48 commented 2 years ago

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.

seba9999 commented 2 years ago

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

Take a look at This PR