a simple table for react native
- header [array]
- body [array]
- height [number]
- width [number]
- header like this
['id', 'name'] - body like this
[[1, 'apple'], [2, 'banana'], [3, 'pineapple']]
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',},})