function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import * as React from 'react';
import { StyleSheet, ScrollView } from 'react-native';
import TableCell from './TableCell';
import TableRow from './TableRow';
const Table = _ref => {
  let {
    children,
    style,
    ...rest
  } = _ref;
  return /*#__PURE__*/React.createElement(ScrollView, _extends({}, rest, {
    style: [styles.container, style]
  }), children);
};

// @component ./TableRow.tsx
Table.Row = TableRow;

// @component ./TableRow.tsx
Table.Cell = TableCell;
const styles = StyleSheet.create({
  container: {
    width: '100%',
    marginVertical: 8,
    paddingHorizontal: 8
  }
});
export default Table;
//# sourceMappingURL=Table.js.map