-
Notifications
You must be signed in to change notification settings - Fork 0
tableViewCell
brainpoint edited this page Feb 28, 2017
·
1 revision
'use strict';
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, } from 'react-native';
import { TableCellView, Icons } from 'react-componet'
class app extends Component {
render() {
return (
<TableViewCell
left={{text:'cellText'}}
right={Icons.getIconMinArrowRight()}
/>
);
}
}cell左边视图的内容, 可以为以下类型的数据:
- 属性对象 { text: PropTypes.string, tintColor: PropTypes.string, style: PropTypes.object, }
- 或者为react渲染元素,如
cell 右边视图的内容, 为react渲染元素.
点击事件处理函数 ()=> {}