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

Error on trying to make Modal visible #3

Open
ithustle opened this issue May 7, 2021 · 0 comments
Open

Error on trying to make Modal visible #3

ithustle opened this issue May 7, 2021 · 0 comments

Comments

@ithustle
Copy link

ithustle commented May 7, 2021

I'm trying to show up the modal but it thrown to me this error:

{"errorCode": "modalAlreadyPresented", "errorMessage": "Cannot present modal because it's already presented", "isInFocus": false, "isPresented": false, "modalLevel": -1, "modalLevelPrev": -1, "modalUUID": "62BF1859-E846-496F-8245-B54FA7CABD69", "target": 123, "visibility": true}

The code:

import { ModalView } from 'react-native-ios-modal';
...

<ModalView
                    ref={ref => this.modalRef = ref}
                >
                    <>
                        <MoreOptions
                            item={song}
                            context={context}
                            propsContext={this.props}
                            refresh={() => this.props.refreshAnAction()}
                            onclose={() => {
                                this.props.unsubscribeStates()
                            }}
                        />
                    </>
                </ModalView>
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