From 6aa2ac1f70eb2dd2cca0eba6212aed14fe820f34 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 9 Jun 2017 14:50:03 -0700 Subject: [PATCH] Remove ListView docs --- README.md | 1 - docs/components/ListView.md | 34 -------- .../components/ListView/ListViewExample.js | 80 ------------------- 3 files changed, 115 deletions(-) delete mode 100644 docs/components/ListView.md delete mode 100644 docs/storybook/components/ListView/ListViewExample.js diff --git a/README.md b/README.md index 2ff94578..69380032 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,6 @@ Exported modules: * [`ActivityIndicator`](docs/components/ActivityIndicator.md) * [`Button`](docs/components/Button.md) * [`Image`](docs/components/Image.md) - * [`ListView`](docs/components/ListView.md) * [`ProgressBar`](docs/components/ProgressBar.md) * [`ScrollView`](docs/components/ScrollView.md) * [`Switch`](docs/components/Switch.md) diff --git a/docs/components/ListView.md b/docs/components/ListView.md deleted file mode 100644 index 126ce84a..00000000 --- a/docs/components/ListView.md +++ /dev/null @@ -1,34 +0,0 @@ -# ListView - -TODO - -## Props - -[...ScrollView props](./ScrollView.md) - -**children**: any - -Content to display over the image. - -**style**: style - -+ ...[View#style](View.md) - -## Examples - -```js -import React, { Component, PropTypes } from 'react' -import { ListView } from 'react-native' - -export default class ListViewExample extends Component { - static propTypes = {} - - static defaultProps = {} - - render() { - return ( - - ) - } -} -``` diff --git a/docs/storybook/components/ListView/ListViewExample.js b/docs/storybook/components/ListView/ListViewExample.js deleted file mode 100644 index 69ad5cb5..00000000 --- a/docs/storybook/components/ListView/ListViewExample.js +++ /dev/null @@ -1,80 +0,0 @@ -import React from 'react'; -import { storiesOf } from '@kadira/storybook'; -import { ListView, StyleSheet, Text, View } from 'react-native'; - -const generateData = length => Array.from({ length }).map((item, i) => i); -const dataSource = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 }); - -storiesOf('component: ListView', module) - .add('vertical', () => - - { - console.log('ScrollView.onScroll', e); - }} - // eslint-disable-next-line react/jsx-no-bind - renderRow={row => {row}} - scrollEventThrottle={1000} // 1 event per second - style={styles.scrollViewStyle} - /> - - ) - .add('incremental rendering - large pageSize', () => - - { - console.log('ScrollView.onScroll', e); - }} - pageSize={50} - // eslint-disable-next-line react/jsx-no-bind - renderRow={row => {row}} - scrollEventThrottle={1000} // 1 event per second - style={styles.scrollViewStyle} - /> - - ) - .add('incremental rendering - small pageSize', () => - - { - console.log('ScrollView.onScroll', e); - }} - pageSize={1} - // eslint-disable-next-line react/jsx-no-bind - renderRow={row => {row}} - scrollEventThrottle={1000} // 1 event per second - style={styles.scrollViewStyle} - /> - - ); - -const styles = StyleSheet.create({ - box: { - flexGrow: 1, - justifyContent: 'center', - borderWidth: 1 - }, - scrollViewContainer: { - height: '200px', - width: 300 - }, - scrollViewStyle: { - borderWidth: '1px' - }, - scrollViewContentContainerStyle: { - backgroundColor: '#eee', - padding: '10px' - } -});