This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "View", | |
"name": "Main", | |
"style": { | |
"position": "absolute", | |
"top": 242, | |
"left": 335, | |
"width": 395, | |
"height": 190, | |
"background": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
export default class HelloWorld extends Component { | |
render() { | |
return ( | |
<div style={styles.Main}> | |
<span style={styles.Hello}>Hello World</span> | |
<img src={'/static/hello-world_world.png'} style={styles.World} /> | |
</div> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { View, Text, Image, StyleSheet } from 'react-native' | |
export default class HelloWorld extends Component { | |
render() { | |
return ( | |
<View style={styles.Main}> | |
<Text style={styles.Hello}>Hello World</Text> | |
<Image source={require('/static/hello-world_world.png')} style={styles.World} /> | |
</View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// Demonstrates extracting complete props info, using real TypeScript | |
// compiler type info. | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
var tslib_1 = require("tslib"); | |
// | |
var ts = require("typescript"); | |
var fs = require("fs"); | |
var path = require("path"); | |
// Arguments: |