mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix crash from pinning
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user