/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const React = require('react'); const { Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View, } = require('react-native'); import type {ViewStyleProp} from '../../Libraries/StyleSheet/StyleSheet'; exports.displayName = 'ScrollViewExample'; exports.title = ''; exports.description = 'Component that enables scrolling through child components'; exports.examples = [ { title: '\n', description: 'To make content scrollable, wrap it within a component', render: function() { let _scrollView: ScrollView; return ( { // $FlowFixMe Invalid prop usage _scrollView = scrollView; }} automaticallyAdjustContentInsets={false} onScroll={() => { console.log('onScroll!'); }} scrollEventThrottle={200} style={styles.scrollView}> {ITEMS.map(createItemRow)}