Skip to content

Modal not displaying #163

@markl-vesper

Description

@markl-vesper

Hi

Seem to have run into an issue when attempting to open modal selector (v2.0.3) as part of onPress function within react-native-elements List Item & Button (v2.0.0)

Use case is as follows

We have a List Item configured with a title that calls a function to open the modal

title={this.renderWindDirectionSelect()}

and also a button as part of rightIcon as per below

                rightIcon: <Button
                    flex={.5}
                    title={value}
                    onPress={() => this.renderWindDirectionSelect()}
                    type="clear"
                    width='50%'
                />

When clicking on the list item the modal is displayed perfectly and updating the selected value updates the title of the button (value) perfectly as part of the function called renderWindDirectionSelect

However clicking on the button doesn't display any modal at all, although I can see the function logging stuff out to console so I know its being called

I considered updating elements but that just blew up the app with what looked to be some breaking changes.

any ideas??

Metadata

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