Closed AlfaIrawan closed 6 years ago
This happens because the method is being called before the component reference has been set. You can do something like this:
{
this.multiselect
?
this.multiselect.getSelectedItemsExt()
:
null
}
This checks that the component reference has been set before invoking the method. The snippet above assumes that the ref is stored in this.multiselect
Thx u @toystars you solve my problem
I tried to resolve this issue by following the link which is to replace:
{ this.multiselect ? this.multiselect.getSelectedItemsExt() : null }
with:
{this.multiSelect && this.multiSelect.getSelectedItemsExt(selectedItems)}
and it worked for me...
how to create reference fot open other button in react-native-multiple-select
@ranu-patidar What are you trying to achieve?
Hey @toystars , I also have this issue. Do you have any Idea?