Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

HybridHome/RCTTableView

Repository files navigation

RCTTableView

A table view component for react native.

'use strict';
var React = require('react-native');
var TableView = require('RCTTableView');
var {
 AppRegistry,
 StyleSheet,
 Text,
 View,
} = React;
var RCTTableViewDemo = React.createClass({
 render: function() {
 return (
 <TableView
 style={styles.tableView}
 tableViewStyle={TableView.Style.Grouped}
 tableViewCellStyle={TableView.CellStyle.Value1}
 cellForRowAtIndexPath={
 [
 [
 {
 textLabel: {
 text: 'Section 1: A',
 // textColor: 'red'
 },
 detailTextLabel: {
 text: 'This is detail'
 }
 },
 {
 textLabel: {
 text: 'Section 1: B'
 },
 detailTextLabel: {
 text: 'This is detail'
 }
 },
 ],
 [
 {
 textLabel: {
 text: 'Section 2: C'
 },
 detailTextLabel: {
 text: 'This is detail'
 }
 },
 {
 textLabel: {
 text: 'Section 2: D'
 },
 detailTextLabel: {
 text: 'This is detail'
 }
 },
 ],
 [
 {
 textLabel: {
 text: 'Section 3: E'
 },
 detailTextLabel: {
 text: 'This is detail'
 }
 },
 {
 textLabel: {
 text: 'Section 3: F'
 },
 detailTextLabel: {
 text: 'This is detail'
 }
 },
 ]
 ]
 }
 onPress={(event) => console.log(event.nativeEvent.indexPath)}
 />
 );
 }
});
var styles = StyleSheet.create({
 tableView: {
 flex: 1
 }
});
AppRegistry.registerComponent('RCTTableViewDemo', () => RCTTableViewDemo);

About

A table view component for react native.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 83.0%
  • JavaScript 17.0%

AltStyle によって変換されたページ (->オリジナル) /