Skip to content

Latest commit

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

react-native-simpletable

a simple table for react native

Props

  • header [array]
  • body [array]
  • height [number]
  • width [number]

Data

  • header like this ['id', 'name']
  • body like this [[1, 'apple'], [2, 'banana'], [3, 'pineapple']]

example

importReact,{Component}from'react'import{StyleSheet,SafeAreaView}from'react-native'importTablefrom'react-native-table-simple-version'exportdefaultclassAppextendsComponent{constructor(props){super(props)this.state={header: ['id','name'],body: [[1,'apple'],[2,'banana'],[3,'pineapple']],}}render(){return(<SafeAreaViewstyle={styles.container}><Tableheader={this.state.header}body={this.state.body}/></SafeAreaView>)}}conststyles=StyleSheet.create({container: {flex: 1,backgroundColor: '#f2f2f2',},})

About

a simple table for react native

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages