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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user