1.2.0 • Published 4 years ago

selectable-list v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Selectable-list

React Hook for selectable lists

Installation

$ npm i selectable-list
import { createListStore } from 'selectable-list'

Usage

const App = () => {
  const [data, setData, controller] = createListStore()
...
  function renderItem({ item }) {

    return (
    <TouchableOpacity onPress={() => controller.selectItem(item.id)}>
      <View>
        <Text >
          {item.text}
        </Text>
        <Text>
          {item.selected ? "true" : "false"}
        </Text>
      </View>
    </TouchableOpacity>
    )
  }
1.2.0

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.0-SNAPSHOT

4 years ago