import React from 'react'; import { Button , View, Text, StyleSheet } from 'react-native'; import {Icon} from 'react-native-elements'; import BaseSystem from './System'; export default class Environment extends BaseSystem{ constructor(CS) { super(); this.CoreSystem = CS; } addRow(){ let View = this.CoreSystem.getCurrentView(); let container = View.getDefaultContainer(); let rows = View.getRows(container); View.setRows(container,rows.length + 1) rows = View.getRows(container) View.setColumns(rows[rows.length-1],1) rows[rows.length-1].props.selected = true; this.forceUpdate(); } render() { return