Closed YunusEmreNalbant closed 3 years ago
@YunusEmreNalbant Hi) Is the question resolved? It doesn't work for me either.
@YunusEmreNalbant Hi) Is the question resolved? It doesn't work for me either.
Hi, no. I tried to reach the solution with another way
@YunusEmreNalbant @human2012 I fix it, my sample code is:
export const Mdl_BudgetCode = (props) => {
const multiSelect = useRef();
<MultiSelect
.....
ref={component => {
multiSelect.current = component;
if (multiSelect.current) {
multiSelect.current._toggleSelector() ;
multiSelect.current._submitSelection = () => {
console.log('Getting here.. you can add your stuff');
multiSelect.current._toggleSelector();
multiSelect.current._clearSearchTerm();
};
}
}}
.....
/>
<ScrollView>
{multiSelect.current && multiSelect.current.getSelectedItemsExt(props.arrOfBudgetCodeId)}
</ScrollView>
}
Hi,
getSelectedItemsExt not working. does not show any thing. I used a functional component
`
`
react-native: 0.63.4 react-native-multiple-select: 0.5.6