|
@@ -7,19 +7,14 @@ import CoreSystem from './lib/systems/CoreSystem.js';
|
|
/*********** Custom View Tree ****/
|
|
/*********** Custom View Tree ****/
|
|
import { Tree } from './lib/helpers/tree';
|
|
import { Tree } from './lib/helpers/tree';
|
|
|
|
|
|
|
|
+import FormComp from './modules/Form';
|
|
|
|
+
|
|
import TextComp from './modules/Text';
|
|
import TextComp from './modules/Text';
|
|
-import ViewComp from './modules/View';
|
|
|
|
import RootComp from './modules/RootComp';
|
|
import RootComp from './modules/RootComp';
|
|
import ImageComp from './modules/Image';
|
|
import ImageComp from './modules/Image';
|
|
import ButtonComp from './modules/Button';
|
|
import ButtonComp from './modules/Button';
|
|
|
|
|
|
|
|
|
|
-let NodeB = new ViewNode("B","ViewComp", {text: "ASD LOOK AT ME LOOK OO O.O (O.O)"});
|
|
|
|
-let NodeC = new ViewNode("C","ViewComp",{text:"Manipulationg the dom"});
|
|
|
|
-let NodeD = new ViewNode("D","ViewComp",{text:"Manipulationg the dom"});
|
|
|
|
-let NodeE = new ViewNode("E","ViewComp",{text:"Manipulationg the dom"});
|
|
|
|
-let NodeM = new ViewNode("M","ViewComp",{text:"Manipulationg the dom"});
|
|
|
|
-let NodeK = new ViewNode("K","ViewComp",{text:"Manipulationg the dom"});
|
|
|
|
const CustomStyle = StyleSheet.create({
|
|
const CustomStyle = StyleSheet.create({
|
|
container:{
|
|
container:{
|
|
flex:1,
|
|
flex:1,
|
|
@@ -42,7 +37,7 @@ const RootStyle = StyleSheet.create({
|
|
let RootNode = new ViewNode("A","RootComp",{text:"This is the asd asd asd asd asd asd sda asdaasdasd asd asdasd asd asd dasasdasd asd adsasd asd asd asdasd asd asd asd asd asd asd asd asd sda asdaasdasd asd asdasd asd asd dasasdasd asd adsasd asd asd asdasd asd asd asd asd asd asd asd asd sda asdaasdasd asd asdasd asd asd dasasdasd asd adsasd asd asd asdasd asd asd asd asd asd asd asd asd sda asdStarting point!!!Try add on me ",style:RootStyle});
|
|
let RootNode = new ViewNode("A","RootComp",{text:"This is the asd asd asd asd asd asd sda asdaasdasd asd asdasd asd asd dasasdasd asd adsasd asd asd asdasd asd asd asd asd asd asd asd asd sda asdaasdasd asd asdasd asd asd dasasdasd asd adsasd asd asd asdasd asd asd asd asd asd asd asd asd sda asdaasdasd asd asdasd asd asd dasasdasd asd adsasd asd asd asdasd asd asd asd asd asd asd asd asd sda asdStarting point!!!Try add on me ",style:RootStyle});
|
|
|
|
|
|
let TestNode = new ViewNode("H","Text",{style:CustomStyle,text:"Edited Text Node Will be here"})
|
|
let TestNode = new ViewNode("H","Text",{style:CustomStyle,text:"Edited Text Node Will be here"})
|
|
-let EditNode = new ViewNode("N","ViewComp",{text:"Manipulationg the dom sdadwad"});
|
|
|
|
|
|
+
|
|
let ImageNode = new ViewNode("asdasd","Image");
|
|
let ImageNode = new ViewNode("asdasd","Image");
|
|
|
|
|
|
// let Row1 = new RowNode("RootRow");
|
|
// let Row1 = new RowNode("RootRow");
|
|
@@ -177,15 +172,16 @@ export default function App() {
|
|
{React.createElement(ButtonComp)}
|
|
{React.createElement(ButtonComp)}
|
|
<Text>Open up App.js to start working on your app!</Text>
|
|
<Text>Open up App.js to start working on your app!</Text>
|
|
|
|
|
|
-
|
|
|
|
|
|
+ <Text>here i s</Text>
|
|
{React.createElement(TextComp)}
|
|
{React.createElement(TextComp)}
|
|
<Text>sdadada</Text>
|
|
<Text>sdadada</Text>
|
|
- {React.createElement(ViewComp)}
|
|
|
|
{React.createElement(RootComp)}
|
|
{React.createElement(RootComp)}
|
|
<Div style={{width: 200, height:400}}>
|
|
<Div style={{width: 200, height:400}}>
|
|
{React.createElement(ImageComp)}
|
|
{React.createElement(ImageComp)}
|
|
</Div>
|
|
</Div>
|
|
-
|
|
|
|
|
|
+ <Div style={{width: 200, height:400}}>
|
|
|
|
+ {React.createElement(FormComp)}
|
|
|
|
+ </Div>
|
|
<Text>Open up App.js to start working on your app!</Text>
|
|
<Text>Open up App.js to start working on your app!</Text>
|
|
|
|
|
|
<Div style={{width:500, height:600}}>
|
|
<Div style={{width:500, height:600}}>
|