[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;
相关文章推荐
- [React Native] Create a component using ScrollView
- [React Native] Reusable components with required propType
- [React Native] Using the Image component and reusable styles
- 使用reflux进行react组件之间的通信
- react-redux的connect()方法 学习笔记
- React—native+Android环境搭建和开发配置(Mac)
- Netty源码解读(四)Netty与Reactor模式
- ReactNative中iOS和Android的style分开设置教程
- ReactNative中iOS和Android的style分开设置教程
- React学习笔记
- boost asio学习笔记1--Reactor与Proactor模式
- 最新版CocoaPods的使用与安装-以导入ReactiveCocoa框架为例
- react native第三方组件问题
- React Native 开发笔记
- React-Native学习指南
- React-Native笔记
- React和Angular
- 用 React 做出好用的 Switch 组件
- react-native-pullview 下拉刷新的react native组件
- React native的安装与使用