Skip to content
Advertisement

not able to wrap the components in reactnative

So i am making a

custom multiple select component

. when you click on the TextInput the dropdown will appear(the items in the dropdown comes from flatlist component) and from that drop down you can search the item you want to select and after selecting a tag will appear beside the input field. This selected tag is also comming from the flatlist

The problem is that after I select 3 items (three tags will be appearing) and go for the 4th one than the TextInput should come to new row.

index.js

JavaScript

Styles.js

JavaScript

opens the dropdown

3 item tags and beside those 3 tags is TextInput

So i want that textinput to come down to another row if i select 4th item

enter image description here

Advertisement

Answer

keep tagview and inputText in the same parent

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement