raynor85 / react-native-material-selectize

A React Native component inspired to Selectize which follows Material Design guidelines.
MIT License
55 stars 32 forks source link

Pass selected Items on render #14

Closed mmarovich closed 6 years ago

mmarovich commented 6 years ago

I'd like to pass in items that have already been selected on render. So for instance:

1) User selects emails and moves away from selectize component, and selected emails go into a state. 2) User decides to go back to selectize component to choose another email. 3) I'd like to make it so that the emails that have already been chosen from the previous session are passed through so that the chips can re-render and it looks like the first session.

Hope this makes sense. There is a way to pass in a list of emails to choose from, but there is no way- that I can see- to pass in a list of items that have been chosen already so that the chips will render right away.

mmarovich commented 6 years ago

Nvm. You have a prop of selectedItems. I just learned to read yesterday. Forgive me. Closing issue.