0.5.3 • Published 5 months ago

rn-selectable-list v0.5.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

rn-selectable-list

Provides a bunch of selectable buttons for your list. It automatically wraps the screen horizontally.

Installation

npm install rn-selectable-list

Usage

import SelectableList from 'rn-selectable-list';

const items = [
  { text: 'M', selected: false },
  { text: 'T', selected: false },
  { text: 'W', selected: true },
  { text: 'T', selected: false },
  { text: 'F', selected: false },
  { text: 'S', selected: false },
  { text: 'S', selected: false },
];

// ...

<SafeAreaView style={styles.container}>
  <SelectableList
    numColumns={7} // 3rd highest priority default is length of items
    items={items}
    // itemHeight={64} // highest priority
    // itemWidth={64} // highest priority
    // itemSize={64} // 2nd highest priority
    // margin={2} // default is 4
  />
</SafeAreaView>;

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.5.3

5 months ago

0.5.2

6 months ago

0.5.1

6 months ago

0.5.0

6 months ago

0.4.0

6 months ago

0.3.0

6 months ago

0.2.0

7 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago