Skip to content

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

fix crash from pinning

ammarahm-ed5c545b47e3bd
diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.js
index 5cc707437..c59bab004 100644
--- a/apps/mobile/src/components/SimpleList/index.js
+++ b/apps/mobile/src/components/SimpleList/index.js
@@ -19,6 +19,9 @@ const SimpleList = ({
refreshing,
placeholderText,
pinned = null,
+ isMove,
+ hideMore,
+ noteToMove,
}) => {
const [state, dispatch] = useTracked();
const {colors, selectionMode} = state;
@@ -116,7 +119,7 @@ const SimpleList = ({
renderItem={({item, index}) =>
item.type === 'notebook' ? (
<NotebookItem
- hideMore={params.hideMore}
+ hideMore={hideMore}
customStyle={{
backgroundColor: Platform.ios
? hexToRGBA(colors.accent + '19')
@@ -130,9 +133,9 @@ const SimpleList = ({
borderBottomWidth: 0,
marginHorizontal: 0,
}}
- isMove={params.isMove}
+ isMove={isMove}
onLongPress={() => {}}
- noteToMove={params.note}
+ noteToMove={noteToMove}
item={item}
pinned={true}
index={index}
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index 666f4bec5..f4716e54b 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -127,6 +127,9 @@ export const Folders = ({navigation}) => {
focused={isFocused}
onRefresh={_onRefresh}
renderItem={_renderItem}
+ hideMore={params.hideMore}
+ isMove={params.isMove}
+ noteToMove={params.note}
placeholder={
<>
<NotebookPlaceHolder animation={slideRight} colors={colors} />