0.0.2 • Published 1 year ago

react-native-dropdown-ostyle v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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.

License

MIT