react-native view组件

/**

  • Sample React Native App
  • https://github.com/facebook/react-native
  • @flow
    */

import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
PixelRatio,
Text,
View
} from 'react-native';

class RAsecond extends Component {
render() {
return (



酒店



海外酒店


特惠酒店




团购


客栈




);
}
}

const styles = StyleSheet.create({
container: {
marginTop:200,
marginLeft:5,
marginRight:5,
height:84,
flexDirection:'row',
borderRadius:5,
padding:2,
backgroundColor: '#FF0067',
},
item: {
flex:1,
height:80
},
center: {
justifyContent:'center',
alignItems:'center',
},
flex:{
flex:1,
},
font:{
color:'#fff',
fontSize:16,
fontWeight:'bold',
},
lineLeftRight:{
borderLeftWidth:1/PixelRatio.get(),
borderRightWidth:1/PixelRatio.get(),
borderColor:'#fff',
},
lineCenter:{
borderBottomWidth:1/PixelRatio.get(),
borderColor:'#fff',
}
});

AppRegistry.registerComponent('RAsecond', () => RAsecond);

你可能感兴趣的:(react-native view组件)