import React from 'react'; import { action, storiesOf } from '@kadira/storybook'; import { ScrollView, StyleSheet, Text, TouchableHighlight, View } from 'react-native' const onScroll = action('ScrollView.onScroll'); storiesOf('component: ScrollView', module) .add('vertical', () => ( {Array.from({ length: 50 }).map((item, i) => ( {}}>{i} ))} )) .add('horizontal', () => ( {Array.from({ length: 50 }).map((item, i) => ( {i} ))} )) const styles = StyleSheet.create({ box: { flexGrow: 1, justifyContent: 'center', borderWidth: 1 }, scrollViewContainer: { height: '200px', width: 300 }, scrollViewStyle: { borderWidth: 1 }, scrollViewContentContainerStyle: { backgroundColor: '#eee', padding: 10 } })