UITableViewCell组合创建(React Native)
来源:互联网 发布:工具书软件 编辑:程序博客网 时间:2024/06/05 10:13
UITableViewCell组合创建(React Native)
by 伍雪颖
'use strict';var React = require('react-native');var { AppRegistry, StyleSheet, View, Image, Text,} = React;class UIImageView extends React.Component { render() { return ( <View style={styles.bgview}> <View style = {styles.cellBgView}> <Image source = {{uri:'http://img.wdjimg.com/image/video/64d23dde9daac32367954b7c8a803da0_0_0.jpeg'}} style = {styles.image} /> <View style = {styles.cellView}> <Text style={styles.title}> Xueyingwu </Text> <Text style = {styles.subtitle}> Work in China </Text> </View> </View> </View> ); }}class SampleApp extends React.Component { render() { return ( <React.NavigatorIOS style={styles.container} initialRoute={{ title: 'My App', component: UIImageView, }}/> ); }}var styles = React.StyleSheet.create({ container: { flex: 1 }, bgview: { backgroundColor: '#eeeeee', paddingTop: 75, paddingLeft: 10, paddingRight: 10, paddingBottom: 10, }, cellBgView:{flexDirection:'row',margin:40}, image:{width:40,height:40,marginRight:10}, cellView:{flex:1,justifyContent:'center',backgroundColor:'#ffffff'}, title:{fontSize:11,fontWeight:'bold',backgroundColor:'#ffffff'}, subtitle:{fontSize:10},});React.AppRegistry.registerComponent('SampleApp', function() { return SampleApp });
0 0
- UITableViewCell组合创建(React Native)
- UILabel创建(React Native)
- react-native创建searchbar
- react native demo创建
- 创建React Native项目
- react native项目创建
- 创建react-native项目
- UIImageView的创建(React Native)
- UIActivityIndicator的创建(React Native)
- React native 创建IOS项目
- React Native创建原生模块
- 快速创建React Native App
- react-native 简单的react-redux创建
- react-native,redux,redux-saga组合开发
- 利用 Create React Native App 快速创建 React Native 应用
- react native踩坑记(创建指定的React-Native版本)
- UITableView表格的创建(React Native)
- 创建React Native 离线 APP的过程
- Viola Jones Face Detector
- 博客搬家了!!!
- andriod优化
- 解决方案 因为计算机同名,无法发现工作组内其他计算机。
- ubuntu 下运行lua
- UITableViewCell组合创建(React Native)
- C语言——辨识你见到的类型
- 大型网站系统架构的演化
- I 帧和 IDR 帧的区别
- 博客地址迁移
- 前端
- 资贤凡涌柏献凭锰彰闯奥荚账镀时
- HDOJ 2222 Keywords Search
- 基于IE内核的多标签浏览器开发过程