您的位置:首页 > Web前端 > React

[React Native] Build a Separator UI component

2016-07-28 03:00 429 查看
In this lesson we'll create a reusable React Native separator component which manages it's own styles.

import React from 'react';
import {View, StyleSheet} from 'react-native';

var styles = StyleSheet.create({
divdir: {
height: 1,
backgroundColor: '#E4E4E4',
flex: 1,
marginLeft: 15
},
});

class Divdir extends React.Component{
render(){
return (
<View style={styles.divdir} />
);
}
};

module.exports = Divdir;


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: