From c793c3b48ee655f4bb302a677adbba32b07754c3 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Thu, 14 Jul 2022 22:28:50 +0800 Subject: [PATCH] flatlist-inverted ex add buttons --- .../js/examples/FlatList/FlatList-inverted.js | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/rn-tester/js/examples/FlatList/FlatList-inverted.js b/packages/rn-tester/js/examples/FlatList/FlatList-inverted.js index 2cd647fb3d048d..d54a2eeebcd09b 100644 --- a/packages/rn-tester/js/examples/FlatList/FlatList-inverted.js +++ b/packages/rn-tester/js/examples/FlatList/FlatList-inverted.js @@ -76,11 +76,22 @@ const renderFlatList = ({item}) => ; function NestedFlatList(props) { const [items, setItems] = useState(DATA); const [disabled, setDisabled] = useState(false); + const [index, setIndex] = useState(DATA.length + 1); return (