UNPKG

react-native-dropdown-ostyle

Version:

Dropdown list with full customization

66 lines (51 loc) 1.33 kB
# 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. ```bash npm install react-native-dropdown-ostyle react-native-reanimated ``` ## Usage ```JSX 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. ## License [MIT](https://choosealicense.com/licenses/mit/)