react-native-dropdown-picker
react-native-dropdown-picker copied to clipboard
Multiple dropdown lag
Hi there im using alot of dropdowns (25-30) on the same screen all with diferente opens, values, setOpen, same items however for all of them, items are defined on state, they all work but they all laggy on openning and selection values works fine with 5-10 dropdowns passing that point it gets laggy anything i might be able to do here?»
Example of one:
<DropDownPicker items={reportItemValues}placeholder="-" zIndex={1000} containerStyle={{height: 40, marginBottom:30, marginTop: 20}} style={{backgroundColor: '#fafafa', color: "#475AA5"}} itemStyle={{ justifyContent: 'flex-start', color: "#475AA5" }} labelStyle={{ fontSize: 14, textAlign: 'left', color: '#000' }} dropDownStyle={{backgroundColor: '#fafafa', opacity: 1}} setValue={(callback) => setFormData({...formData, reportValues24: callback(reportValues24) })} open={openReport24} value={reportValues24} setOpen={setOpenReport24} />
i have same issue