/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @providesModule ScrollViewExample * @format */ 'use strict'; import type {DangerouslyImpreciseStyleProp} from 'StyleSheet'; const ActivityIndicator = require('ActivityIndicator'); const Platform = require('Platform'); const React = require('react'); const ReactNative = require('react-native'); const { ScrollView, StyleSheet, Text, TouchableOpacity, View, Image, } = ReactNative; 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 ( { _scrollView = scrollView; }} automaticallyAdjustContentInsets={false} onScroll={() => { console.log('onScroll!'); }} scrollEventThrottle={200} style={styles.scrollView}> {THUMB_URLS.map(createThumbRow)}