[fix] View event handling

Fix #238
This commit is contained in:
Nicolas Gallagher
2016-10-27 21:00:17 -07:00
parent 0af6dc00fc
commit 14072c7471
2 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { ScrollView, StyleSheet, Text, View } from 'react-native'
import { ScrollView, StyleSheet, Text, TouchableHighlight, View } from 'react-native'
storiesOf('component: ScrollView', module)
.add('vertical', () => (
@@ -13,7 +13,7 @@ storiesOf('component: ScrollView', module)
>
{Array.from({ length: 50 }).map((item, i) => (
<View key={i} style={styles.box}>
<Text>{i}</Text>
<TouchableHighlight onPress={() => {}}><Text>{i}</Text></TouchableHighlight>
</View>
))}
</ScrollView>
@@ -39,7 +39,6 @@ storiesOf('component: ScrollView', module)
const styles = StyleSheet.create({
box: {
alignItems: 'center',
flexGrow: 1,
justifyContent: 'center',
borderWidth: 1