fix(mobile): turn native textview into uncontrolled component (#1176)

Switching from non-plain type to plain type renders initial state.text, which wasn't being properly updated on all changes.
This commit is contained in:
Mo
2022-06-28 12:45:57 -05:00
committed by GitHub
parent b421415968
commit d198625cfa
9 changed files with 58 additions and 52 deletions

View File

@@ -223,7 +223,7 @@ export const NoteList = (props: Props) => {
<FlatList
ref={noteListRef}
style={styles.list}
keyExtractor={(item) => item?.uuid}
keyExtractor={(item) => item?.uuid || String(new Date().getTime())}
contentContainerStyle={[{ paddingBottom: insets.bottom }, props.notes.length > 0 ? {} : { height: '100%' }]}
initialNumToRender={6}
windowSize={6}