ReactNative 属性
来源:互联网 发布:合成视频的软件 编辑:程序博客网 时间:2024/05/16 12:20
ReactNative中的属性用法。
import React, {Component} from 'react';import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, TextInput, Image,} from 'react-native';/** * 2、flex 属性 */let RnDemo = React.createClass({ render: function () { return ( <View style={styles.container}> <View style={styles.child1}></View> <View style={styles.child2}></View> </View> ); }});//创建样式let styles = StyleSheet.create({ container: { margin: 30, width: 300, height: 500, backgroundColor: "yellow", //默认主抽方向 column //设置为横向 flexDirection: "row", //设置主抽方法居中 justifyContent: "center", //交叉抽 // alignItems: "center", }, child1: { width: 100, height: 100, backgroundColor: "green", }, child2: { width: 100, height: 100, backgroundColor: "blue", }});
阅读全文
1 0
- ReactNative 属性
- ReactNative支持的样式属性
- ReactNative组件属性类(propTypes)校验
- ReactNative Text的属性和样式
- ReactNative View的属性和样式
- ReactNative中View经常用到的属性
- ReactNative学习之Props(属性)
- reactNative学习笔记之Props属性
- ReactNative
- ReactNative
- ReactNative
- ReactNative
- ReactNative
- ReactNative学习十六-View属性及Style
- ReactNative学习十八-Text/Image属性与风格
- ReactNative学习笔记2(常用组件及其属性)
- ReactNative之ListView学习总结(三)datasource 属性
- ReactNative之ListView学习总结(四)listview 属性
- pyalgotrade教程1--第一个demo
- Memblaze发布PBlaze5 PCIe NVMe SSD,高品质企业级3D NAND实现容量跃迁
- Mac地址和ip地址区别
- 这可能是最好的RxJava 2.x 入门教程(三)
- 面试准备
- ReactNative 属性
- Mac安装图像标注工具labelImg
- IIS PHP Thinkphp 重定向 rewrite 设置默认header meta IE 兼容模式
- 阿里云 实现流媒体 直播 demo
- valgrind
- android developer tiny share-20170623
- JM代码阅读之一SODB RBSP EBSP NALU
- Canvas模拟太阳地球月球的运动过程
- QTabWidget 设置部分tab上有关闭按钮,部分没有