Skip to content

Error on trying to make Modal visible #3

Open
@ithustle

Description

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>

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions