/** * 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 ActivityIndicator = require('ActivityIndicator'); const Platform = require('Platform'); const React = require('react'); const ReactNative = require('react-native'); const { ScrollView, StyleSheet, Text, TouchableOpacity, View, Image, } = ReactNative; import type {ViewStyleProp} from '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}> {THUMB_URLS.map(createThumbRow)}