|
@@ -98,7 +98,7 @@ export default class SideBar extends BaseSystem {
|
|
editorProps.number = viewNodeProps[key];
|
|
editorProps.number = viewNodeProps[key];
|
|
break;
|
|
break;
|
|
case DataTypes.Types.Boolean:
|
|
case DataTypes.Types.Boolean:
|
|
- editorProps.checked = viewNodeProps[key];
|
|
|
|
|
|
+ editorProps.checked = viewNodeProps[key] === 'true' || viewNodeProps[key] == true;
|
|
break;
|
|
break;
|
|
case DataTypes.Types.Text:
|
|
case DataTypes.Types.Text:
|
|
editorProps.text = viewNodeProps[key];
|
|
editorProps.text = viewNodeProps[key];
|
|
@@ -162,18 +162,18 @@ export default class SideBar extends BaseSystem {
|
|
<View>
|
|
<View>
|
|
{this.ContainerNode ?
|
|
{this.ContainerNode ?
|
|
[
|
|
[
|
|
- <Alignment onSelect={(style) => this.editNodeStyle(selectedNode, style)} />,
|
|
|
|
- <ContainerEditor structure={Structure}
|
|
|
|
|
|
+ <Alignment key={'Alignment'} onSelect={(style) => this.editNodeStyle(selectedNode, style)} />,
|
|
|
|
+ <ContainerEditor key={'ContainerEditor'} structure={Structure}
|
|
nodeProps={nodeProps}
|
|
nodeProps={nodeProps}
|
|
key={this.ContainerNode.id}
|
|
key={this.ContainerNode.id}
|
|
onChange={(k,v) => this.editNode(selectedNode, v, k)}/>,
|
|
onChange={(k,v) => this.editNode(selectedNode, v, k)}/>,
|
|
|
|
|
|
- <View style={PropertiesContainer.container}>
|
|
|
|
|
|
+ <View style={PropertiesContainer.container} key={'ContentData'}>
|
|
{contentData}
|
|
{contentData}
|
|
</View>,
|
|
</View>,
|
|
|
|
|
|
- <View style={SideBarStyle.title}>
|
|
|
|
- <Text style={{cursor: 'pointer'}} onClick={() => this.toggleAll()}>Show All</Text>
|
|
|
|
|
|
+ <View key={'ShowAll'}>
|
|
|
|
+ <Text style={SideBarStyle.title} onClick={() => this.toggleAll()}>Show All</Text>
|
|
</View>
|
|
</View>
|
|
]
|
|
]
|
|
: <Text style={{padding: 24}}>Click on elements</Text>}
|
|
: <Text style={{padding: 24}}>Click on elements</Text>}
|
|
@@ -201,7 +201,7 @@ export default class SideBar extends BaseSystem {
|
|
alert("Not working");
|
|
alert("Not working");
|
|
}}/>
|
|
}}/>
|
|
<Image name='near me'
|
|
<Image name='near me'
|
|
- style={{width: 20, height: 20 , color:'#606060'}}
|
|
|
|
|
|
+ style={{width: 20, height: 20}}
|
|
source= {require('../assets/icon.png')}
|
|
source= {require('../assets/icon.png')}
|
|
containerStyle={{}}
|
|
containerStyle={{}}
|
|
onClick={() => this.removeNode(this.ContainerNode)}
|
|
onClick={() => this.removeNode(this.ContainerNode)}
|
|
@@ -255,7 +255,8 @@ const SideBarStyle = StyleSheet.create({
|
|
fontSize: 12,
|
|
fontSize: 12,
|
|
letterSpacing: 0.5,
|
|
letterSpacing: 0.5,
|
|
color: "#BFBFBF",
|
|
color: "#BFBFBF",
|
|
- opacity: 1
|
|
|
|
|
|
+ opacity: 1,
|
|
|
|
+ cursor: 'pointer'
|
|
},
|
|
},
|
|
body:{
|
|
body:{
|
|
paddingLeft:5,
|
|
paddingLeft:5,
|