react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

reset dropdown to placeholder

Open TGod-Ajayi opened this issue 5 years ago • 2 comments

I have 2 dropdowns and I want it when i select one the other changes to the placeholder and vice-versa `<Dropdown> <ModalDropdown
textStyle={styles.modalText} options={templatenew}

                                    defaultValue={modalButtonB}
                                    onSelect = {(index, value) => { setModalVal(value), setModalButtonB('Please Select') } }
                               
                                    />
                                </Dropdown>
                                <Dropdown>
                                    <ModalDropdown  
                                    textStyle={styles.modalText} 
                                    options={templatenew}
         
                                    defaultValue={modalButtonB}
                                    
                                    onSelect = {(index, value) => { setModalVal(value), setModalButtonB('Please Select') } }
                                
                                    />
                                </Dropdown>`

TGod-Ajayi avatar Jan 02 '20 00:01 TGod-Ajayi

dropdownRef.current.select(-1) it in the doc

LeQuy-123 avatar Aug 10 '21 13:08 LeQuy-123

dropdownRef.current.select(-1) it in the doc

This is not working as it is giving error Cannot read property 'select' of undefined.

usmanhaiderr avatar Jan 29 '24 16:01 usmanhaiderr