Skip to content

Instantly share code, notes, and snippets.

@crissmoldovan
Last active September 11, 2018 15:14
Show Gist options
  • Save crissmoldovan/49375169aee3b9f287d5e1602c84a7c0 to your computer and use it in GitHub Desktop.
Save crissmoldovan/49375169aee3b9f287d5e1602c84a7c0 to your computer and use it in GitHub Desktop.
Basic Example of JSON-IR
{
"type": "View",
"name": "Main",
"style": {
"position": "absolute",
"top": 242,
"left": 335,
"width": 395,
"height": 190,
"background": {
"color": "#b0f3d0ff"
},
"border": [
{
"color": "#979797ff",
"style": "inset",
"width": 1
}
]
},
"children": [
{
"type": "Text",
"name": "Hello",
"children": "Hello World",
"style": {
"position": "absolute",
"top": 265,
"left": 455,
"width": 155,
"height": 36,
"fontFamily": "Helvetica Light",
"fontSize": 30
}
},
{
"type": "Image",
"name": "World",
"src": "/static/hello-world_world.png",
"style": {
"position": "absolute",
"top": 286,
"left": 402,
"width": 261,
"height": 161,
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment