Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing snackbar after apply Alert dialog #128

Closed
daimonkor opened this issue Oct 13, 2019 · 1 comment
Closed

Missing snackbar after apply Alert dialog #128

daimonkor opened this issue Oct 13, 2019 · 1 comment

Comments

@daimonkor
Copy link

Please help, Snackbar did not show

Alert.alert(
    'Test',
    'Do you want remove?',
    [
        {text: 'Cancel'},
        {
            text: 'Ok', onPress: () =>{
                Snackbar.show({
                    title: 'Hello world',
                    duration: Snackbar.LENGTH_INDEFINITE,
                    action: {
                        title: 'UNDO',
                        color: 'green',
                        onPress: () => { /* Do something. */ },
                    },
                })
                this.deleteRow(rowMap, key);

            }
        },
    ]
);

Thanks for help.
@cooperka
Copy link
Owner

The Snackbar is likely attaching to the Alert modal that's on the screen when show is called. See issue #28 for suggested workarounds. Thanks and good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants