React Native 集成react-native-table-component(table表格插件)及代码示例
1、安装
#npm安装
npm install --save react-native-table-component
2、使用
1):TableExample.js入口文件
import React, {
Component} from 'react';
import {
Platform, StyleSheet, Text, TouchableOpacity, View} from 'react-native';
import {
Row, Rows, Table} from 'react-native-table-component';
import {
Button,Toast} from '@ant-design/react-native';
export default class TableExample extends Component {
constructor(props) {
super(...arguments);
}
render() {
const options = {
tableHead: ['name', 'sum', 'ok', 'no', 'stop', 'other'],
tableData