From 632726574a60964f6eb390dda794a5f1a3ca863b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Guillop=C3=A9?= Date: Wed, 16 Oct 2024 17:11:14 +0200 Subject: [PATCH] fix: do not use FlatList inside ScrollView --- src/navigation/task/Complete.js | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/src/navigation/task/Complete.js b/src/navigation/task/Complete.js index 4b5f8c807..a6efe6449 100644 --- a/src/navigation/task/Complete.js +++ b/src/navigation/task/Complete.js @@ -337,27 +337,19 @@ const FailureReasonForm = ({ data, onChange }) => { {({ handleChange, handleBlur, - values, - errors, - setFieldValue, }) => - item.type !== 'hidden') } - keyExtractor={ item => item.name } - renderItem={({ item }) => { - - return ( - - { item.label } - - - ) - }} - /> + <> + {_.filter(data, item => item.type !== 'hidden').map(item => + + { item.label } + + + )} + } )