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

Using dropdown with form elements causing the whole app to freeze

Open iarmankhan opened this issue 11 months ago • 2 comments

Hi, I have implemented the library in my project and when I use the dropdown alone, it works fine. But if I use the dropdown component with different form elements, it freezes the whole app. I have to kill the app and restart it to make it work again. This is always happening.

Bug: https://github.com/hoaphantn7604/react-native-element-dropdown/assets/40450695/5540db81-f3cb-4a60-a1b5-5759be939ade

There is no infinite loop in the code as I checked the console.

iarmankhan avatar Jul 17 '23 07:07 iarmankhan

Hi @iarmankhan did you find a solution to this?

ace-builds avatar Dec 09 '23 15:12 ace-builds

Hi, I have implemented the library in my project and when I use the dropdown alone, it works fine. But if I use the dropdown component with different form elements, it freezes the whole app. I have to kill the app and restart it to make it work again. This is always happening.

Bug: https://github.com/hoaphantn7604/react-native-element-dropdown/assets/40450695/5540db81-f3cb-4a60-a1b5-5759be939ade

There is no infinite loop in the code as I checked the console.

you are using dropdown in the custom component it is freezing on data props because you are using like props.data but we have to use like this.

export default function CustomDropDownPicker({ data}: any) { <Dropdown style={[styles.dropdown, dropDownCont]} placeholderStyle={styles.placeholderStyle} data={data} }

Sonamupta avatar Feb 24 '24 19:02 Sonamupta