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

Failed prop type: The prop children is marked as required in MaterialDialog, but its value is undefined in MaterialDialog #44

Open
kapilpise opened this issue Sep 20, 2018 · 0 comments

Comments

@kapilpise
Copy link

kapilpise commented Sep 20, 2018

Hi I am facing problem when using function with return to show Material dialog for loading dynamic values.
This is my code
Please help me I am new in RN

showMaterialDialog(key) {
        this.state.data.filter(obj => {
            return obj.key === key;
        }).map((obj, idx) => {
            return (
                <MaterialDialog
                    title="Use Google's Location Service?"
                    visible={true}
                    onOk={() => this.setState({ visible: false })}
                    onCancel={() => this.setState({ visible: false })}>
                </MaterialDialog>
            )
        })

    }

I am calling this function onPress of Text

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

No branches or pull requests

1 participant