Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Additive List for AutoValues() of TextInput in settings app

I noticed this excellent option in the SDK of the Settings app.

 

onAutocomplete={(value) => {
    const autoValues = [
      { name: "red", value: "1" },
      { name: "orange", value: "2" },
      { name: "yellow", value: "3" },
      { name: "green", value: "4" },
      { name: "blue", value: "5" },
      { name: "purple", value: "6" }];
    return autoValues.filter((option) => option.name.startsWith(value));
  }}

 

I am wondering if there is support to use multiple options as the entry. I am using this for the meds section of my app. So, I would love for people to be able to select multiple meds and then concatenate them as the note.

Best Answer
0 Votes
1 REPLY 1

Hi, did you ever figure this out?

Author | ch, passion for improvement.

Best Answer
0 Votes