Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: use getItemType in list

ammarahm-ed7b5923ebc53a
diff --git a/apps/mobile/app/components/list/index.js b/apps/mobile/app/components/list/index.js
index e3d0c9fe1..0e82dba46 100644
--- a/apps/mobile/app/components/list/index.js
+++ b/apps/mobile/app/components/list/index.js
@@ -168,6 +168,7 @@ const List = ({
onMomentumScrollEnd={() => {
tabBarRef.current?.unlock();
}}
+ getItemType={(item) => item.itemType || item.type}
estimatedItemSize={isCompactModeEnabled ? 60 : 100}
directionalLockEnabled={true}
keyboardShouldPersistTaps="always"