1.2.0 • Published 5 years ago

selectable-list v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0-SNAPSHOT

5 years ago