react-native-tag-select icon indicating copy to clipboard operation
react-native-tag-select copied to clipboard

How to show already selected

Open karanpratapsingh opened this issue 6 years ago • 8 comments

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

karanpratapsingh avatar Jun 16 '19 09:06 karanpratapsingh

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

Thanks

shivamtiwari8736 avatar Oct 19 '19 09:10 shivamtiwari8736

@shivamtiwari8736 unfortunately not :(

karanpratapsingh avatar Oct 19 '19 09:10 karanpratapsingh

@karanpratapsingh then what you did to achieve it?

shivamtiwari8736 avatar Oct 19 '19 09:10 shivamtiwari8736

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

karanpratapsingh avatar Oct 19 '19 09:10 karanpratapsingh

Thanks @karanpratapsingh , I'll try this.

shivamtiwari8736 avatar Oct 19 '19 09:10 shivamtiwari8736

My pleasure, bro 😄

karanpratapsingh avatar Oct 19 '19 09:10 karanpratapsingh

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

ThiagoBr91 avatar May 12 '20 15:05 ThiagoBr91

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

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

Also tested it working fine.

ankitjaiswal1994 avatar Sep 02 '20 06:09 ankitjaiswal1994