Skip to content

phos-dev/react-native-editable-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-editable-list

An editable React list component

NPM JavaScript Style Guide

Install

npm install --save react-native-editable-list

Usage

import React, { Component } from 'react'

import EditableList from 'react-native-editable-list'

class Example extends Component {
  constructor() {
    super();
    this.state = {
      obs: []
    }
  }
  onChange(list) {
    this.setState({obs: list})
  }
  render() {
    return <EditableList list={this.state.obs} onListChange={this.onChange.bind(this)}/>
  }
}

License

MIT © phos-dev