Demo entry 5865389

ff

   

Submitted by anonymous on Aug 22, 2016 at 05:18
Language: JavaScript+Smarty. Code size: 1.2 kB.

'use strict';
import {createElement, Component} from '@ali/rx';
import {mount} from '@ali/rx-mounter';
import { View, Text } from '@ali/rx-components';

class Demo extends Component {
    render() {
        return (
            <View style={styles.container}>
                <Text style={styles.welcome}>
                    Welcome to Qianniu!
                </Text>
                <Text style={styles.instructions}>
                    To get started, edit src/index.jsx
                </Text>
                <Text style={styles.instructions}>
                    Press Cmd+R to reload,
                </Text>
                <Text style={styles.instructions}>
                    Cmd+D or shake for dev menu
                </Text>
            </View>
        );
    }
}

const styles = {
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#F5FCFF',
    },
    welcome: {
        fontSize: 20,
        textAlign: 'center',
        margin: 10,
    },
    instructions: {
        textAlign: 'center',
        color: '#333333',
        marginBottom: 5,
    },
};

mount(<Demo />, 'body');

export default Demo;

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).