|
@@ -4,11 +4,15 @@ import { View, Text, StyleSheet } from 'react-native';
|
|
|
|
|
|
export default class Environment {
|
|
export default class Environment {
|
|
|
|
|
|
- constructor(CS) {
|
|
|
|
|
|
+ constructor(CS, phoneRef) {
|
|
|
|
+ this.phoneRef = phoneRef;
|
|
this.CoreSystem = CS;
|
|
this.CoreSystem = CS;
|
|
}
|
|
}
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
|
+ let CurrentView = this.CoreSystem.getCurrentView();
|
|
|
|
+ let defaultContainer = CurrentView.getDefaultContainer();
|
|
|
|
+ let Rows = CurrentView.getRows(defaultContainer);
|
|
return <View style={styles.container}>
|
|
return <View style={styles.container}>
|
|
<View style={styles.row}>
|
|
<View style={styles.row}>
|
|
<Text>Row</Text>
|
|
<Text>Row</Text>
|
|
@@ -16,11 +20,16 @@ export default class Environment {
|
|
</View>
|
|
</View>
|
|
<View style={styles.row}>
|
|
<View style={styles.row}>
|
|
<View style={styles.col}>
|
|
<View style={styles.col}>
|
|
- <Text>Col</Text>
|
|
|
|
- </View>
|
|
|
|
- <View style={[styles.mobileView, styles.col]}>
|
|
|
|
- {this.CoreSystem.render()}
|
|
|
|
|
|
+ <Text>Colasdasdasdasdasd</Text>
|
|
|
|
+ {Rows.map((row) => {
|
|
|
|
+ return <Text>Row : {row.id}</Text>
|
|
|
|
+ })}
|
|
</View>
|
|
</View>
|
|
|
|
+ <div ref={this.phoneRef}>
|
|
|
|
+ <View style={[styles.mobileView]}>
|
|
|
|
+ {this.CoreSystem.render()}
|
|
|
|
+ </View>
|
|
|
|
+ </div>
|
|
<View style={styles.col}>
|
|
<View style={styles.col}>
|
|
<Text>Col</Text>
|
|
<Text>Col</Text>
|
|
</View>
|
|
</View>
|