Skip to content

Unable to set text aside of using initialValue props #41

Open
@vituallajuphet

Description

@vituallajuphet

is there a feature wherein upon selecting an item from the list programmatically instead of manually selecting an item?

Activity

onmotion

onmotion commented on Aug 2, 2022

@onmotion
Owner

Hi!

You can use setInputText or setItem method on controller ref

e.g.

onPress={() => dropdownController.current.toggle()}

vituallajuphet

vituallajuphet commented on Aug 2, 2022

@vituallajuphet
Author

thanks @onmotion
you saved my day :)

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

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

        Participants

        @onmotion@vituallajuphet

        Issue actions

          Unable to set text aside of using initialValue props · Issue #41 · onmotion/react-native-autocomplete-dropdown