|
@@ -7,19 +7,14 @@ import CoreSystem from './lib/systems/CoreSystem.js';
|
|
|
/*********** Custom View Tree ****/
|
|
|
import { Tree } from './lib/helpers/tree';
|
|
|
|
|
|
+import FormComp from './modules/Form';
|
|
|
+
|
|
|
import TextComp from './modules/Text';
|
|
|
-import ViewComp from './modules/View';
|
|
|
import RootComp from './modules/RootComp';
|
|
|
import ImageComp from './modules/Image';
|
|
|
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({
|
|
|
container:{
|
|
|
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 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 Row1 = new RowNode("RootRow");
|
|
@@ -177,15 +172,16 @@ export default function App() {
|
|
|
{React.createElement(ButtonComp)}
|
|
|
<Text>Open up App.js to start working on your app!</Text>
|
|
|
|
|
|
-
|
|
|
+ <Text>here i s</Text>
|
|
|
{React.createElement(TextComp)}
|
|
|
<Text>sdadada</Text>
|
|
|
- {React.createElement(ViewComp)}
|
|
|
{React.createElement(RootComp)}
|
|
|
<Div style={{width: 200, height:400}}>
|
|
|
{React.createElement(ImageComp)}
|
|
|
</Div>
|
|
|
-
|
|
|
+ <Div style={{width: 200, height:400}}>
|
|
|
+ {React.createElement(FormComp)}
|
|
|
+ </Div>
|
|
|
<Text>Open up App.js to start working on your app!</Text>
|
|
|
|
|
|
<Div style={{width:500, height:600}}>
|