react-native-dropdown-ostyle
v0.0.2
Published
Dropdown list with full customization
Downloads
2
Maintainers
Readme
React Native Dropdown O Style
React Native Dropdown O Style is a simple dropdwon functionality. But you can style everything you want
Installation
Use the package manager to install foobar.
npm install react-native-dropdown-ostyle react-native-reanimated
Usage
const Dropdown from 'react-native-dropdown-ostyle';
<Dropdown
onPress={(item, index , items) => console.log(item, index, items)}
style={{
// React Native Style
}}
title="My Title"
titleStyle={{
// React Native Style
}}
headerLeft={
// Component
<Ionicons name="home" size={24} color="#fff" />
}
headerRight={
// Component
<Ionicons name="chevron-forward" size={24} color="#fff" />
}
contentStyle={{
// React Native Style
}}
items={['item 1', 'item 2', 'item 3']}
itemsLeft={
// Component
<LineAndCurve style={styles.listStyle} />
}
itemsLestLeft={
// Component
<Curve style={styles.listStyle} />
}
itemTextStyle={{
// React Native Style
}}
/>
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.