hiddentao / react-native-modal-filter-picker

Cross-platform modal picker for React Native which supports keyword filtering, custom rendering, etc
MIT License
104 stars 74 forks source link

Component makes the app lag #47

Closed SauravBaid closed 4 years ago

SauravBaid commented 4 years ago

Could there be a possible reason for why the modal picker lags a lot in the app?

Here is a snippet of the code :

                          <ModalFilterPicker
                                visible={visible}
                                onSelect={this.onSelect}
                                onCancel={this.onCancel}
                                options={this.state.categoryOption}
                                autoFocus={false}
                                selectedOption="#FFCC00"
                                overlayStyle = {styles.overlayStyle}
                                listContainerStyle = {styles.listContainerStyle}
                                optionTextStyle = {styles.optionTextStyle}
                                titleTextStyle = {styles.titleTextStyle}
                                optionTextStyle = {styles.optionTextStyle}
                                filterTextInputContainerStyle = {styles.filterTextInputContainerStyle}
                                cancelContainerStyle = {styles.cancelContainerStyle}
                                cancelButtonStyle = {styles.cancelButtonStyle}
                                cancelButtonTextStyle = {styles.cancelButtonTextStyle}
                            />