We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the react-native-select-dropdown package in a React Native app, I'm encountering two issues:
react-native-select-dropdown
These errors occur when clicking on the dropdown to open the options list.
Steps to Reproduce:
npm install react-native-select-dropdown
SelectDropdown
import { Text, SafeAreaView, StyleSheet, View } from 'react-native'; import SelectDropdown from 'react-native-select-dropdown'; export default function Timer() { const arr = [ { id: 1, title: 'Personal' }, { id: 2, title: 'Sick' }, { id: 3, title: 'Maternity' }, { id: 4, title: 'Paternity' }, { id: 5, title: 'Unpaid' }, { id: 6, title: 'Compensate' }, { id: 7, title: 'Study' }, { id: 8, title: 'Casual' }, { id: 9, title: 'Special' }, ]; return ( <SafeAreaView style={styles.container}> <SelectDropdown data={arr} onSelect={(selectedItem, index) => { console.log(selectedItem, index); }} renderButton={(selectedItem, isOpened) => { return ( <View style={styles.dropdownButtonStyle}> <Text style={styles.dropdownButtonTxtStyle}> {(selectedItem && selectedItem.title) || 'Select your mood'} </Text> </View> ); }} renderItem={(item, index, isSelected) => { return ( <View style={{ ...styles.dropdownItemStyle, ...(isSelected && { backgroundColor: '#D2D9DF' }), }} > <Text style={styles.dropdownItemTxtStyle}>{item.title}</Text> </View> ); }} showsVerticalScrollIndicator={false} dropdownStyle={styles.dropdownMenuStyle} /> </SafeAreaView> ); } const styles = StyleSheet.create({ // ... (styles omitted for brevity) });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using the
react-native-select-dropdown
package in a React Native app, I'm encountering two issues:These errors occur when clicking on the dropdown to open the options list.
Steps to Reproduce:
react-native-select-dropdown
package:npm install react-native-select-dropdown
SelectDropdown
component and use it in your code:The text was updated successfully, but these errors were encountered: