Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

How to show already selected #16

Open
karanpratapsingh opened this issue Jun 16, 2019 · 8 comments
Open

How to show already selected #16

karanpratapsingh opened this issue Jun 16, 2019 · 8 comments

Comments

@karanpratapsingh
Copy link

Hey, awesome package...but I was wondering is there a way to show a tag which is already selected? Right now when it is rendered it shows all tags as not selected

Thanks

@shivamtiwari8736
Copy link

Hi @karanpratapsingh
Have you go any solution to this problem, I am going through the same.

Thanks

@karanpratapsingh
Copy link
Author

@shivamtiwari8736 unfortunately not :(

@shivamtiwari8736
Copy link

@karanpratapsingh then what you did to achieve it?

@karanpratapsingh
Copy link
Author

you can try this one https://callstack.github.io/react-native-paper/chip.html, works well

@shivamtiwari8736
Copy link

Thanks @karanpratapsingh ,
I'll try this.

@karanpratapsingh
Copy link
Author

My pleasure, bro 😄

@ThiagoBr91
Copy link

You can use the value prop, which is an array with the keys of the selected tags
@karanpratapsingh @shivamtiwari8736

@ankitjaiswal1994
Copy link

I think it is clearly mentioned in the document. Use value prop

value | array | [] | Array with pre-defined values

Also tested it working fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants