/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, {Component} from ‘react’;
import {
AppRegistry,//注册
StyleSheet,//样式
Text,//文本组件
View,//视图组件
Image//图片组件
} from ‘react-native’;
//引入像素点库
var Dimension = require(‘Dimensions’);
export default class Test1 extends Component{
render() {
return(
<View style={mystyle.innerStyle}>
<Text style={
{backgroundColor:'red',height:30}}>中国1</Text>
<Text style={
{backgroundColor:'green',height:40}}>中国2</Text>
<Text style={
{backgroundColor:'yellow',height:50}}>中国3</Text>
<Text style={
{backgroundColor:'blue',height:60}}>中国4&l