Skip to content

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

mobile: use flashlist

ammarahm-edb0438bf71ea1
diff --git a/apps/mobile/app/components/list-items/notebook/index.js b/apps/mobile/app/components/list-items/notebook/index.js
index 6323cd4c0..0babf1f5a 100644
--- a/apps/mobile/app/components/list-items/notebook/index.js
+++ b/apps/mobile/app/components/list-items/notebook/index.js
@@ -24,7 +24,7 @@ import { notesnook } from "../../../../e2e/test.ids";
import { TopicNotes } from "../../../screens/notes/topic-notes";
import { useSettingStore } from "../../../stores/use-setting-store";
import { useThemeStore } from "../../../stores/use-theme-store";
-import { getTotalNotes, history } from "../../../utils";
+import { history } from "../../../utils";
import { SIZE } from "../../../utils/size";
import { Properties } from "../../properties";
import { Button } from "../../ui/button";
diff --git a/apps/mobile/app/components/list-items/selection-wrapper/index.js b/apps/mobile/app/components/list-items/selection-wrapper/index.js
index 679f7f71b..506886325 100644
--- a/apps/mobile/app/components/list-items/selection-wrapper/index.js
+++ b/apps/mobile/app/components/list-items/selection-wrapper/index.js
@@ -29,6 +29,7 @@ import { PressableButton } from "../../ui/pressable";
import { ActionStrip } from "./action-strip";
import { Filler } from "./back-fill";
import { SelectionIcon } from "./selection";
+import { useRef } from "react";
const SelectionWrapper = ({
children,
@@ -38,6 +39,7 @@ const SelectionWrapper = ({
onPress,
testID
}) => {
+ const itemId = useRef(item.id);
const colors = useThemeStore((state) => state.colors);
const [actionStrip, setActionStrip] = useState(false);
const notebooksListMode = useSettingStore(
@@ -51,6 +53,13 @@ const SelectionWrapper = ({
(item.type === "notebook" || item.type === "note") &&
listMode === "compact";
+ if (item.id !== itemId.current) {
+ itemId.current = item.id;
+ if (actionStrip) {
+ setActionStrip(false);
+ }
+ }
+
const _onLongPress = () => {
if (history.selectedItemsList.length > 0) return;
setActionStrip(!actionStrip);
diff --git a/apps/mobile/app/components/list/index.js b/apps/mobile/app/components/list/index.js
index 454926e72..e3d0c9fe1 100644
--- a/apps/mobile/app/components/list/index.js
+++ b/apps/mobile/app/components/list/index.js
@@ -18,7 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import React, { useRef } from "react";
-import { FlatList, RefreshControl, View } from "react-native";
+import { RefreshControl, View } from "react-native";
+import { FlashList } from "@shopify/flash-list";
import Animated, { FadeInDown } from "react-native-reanimated";
import { notesnook } from "../../../e2e/test.ids";
import { eSendEvent } from "../../services/event-manager";
@@ -36,6 +37,7 @@ import { NotebookWrapper } from "../list-items/notebook/wrapper";
import TagItem from "../list-items/tag";
import { Empty } from "./empty";
import { getTotalNotes } from "../../utils";
+import { useSettingStore } from "../../stores/use-setting-store";
const renderItems = {
note: NoteWrapper,
@@ -97,6 +99,14 @@ const List = ({
}) => {
const colors = useThemeStore((state) => state.colors);
const scrollRef = useRef();
+ const [notesListMode, notebooksListMode] = useSettingStore((state) => [
+ state.settings.notesListMode,
+ state.settings.notebooksListMode
+ ]);
+ const isCompactModeEnabled =
+ (type === "notes" && notesListMode === "compact") ||
+ type === "notebooks" ||
+ notebooksListMode === "compact";
const renderItem = React.useCallback(
({ item, index }) => (
@@ -148,20 +158,18 @@ const List = ({
}}
entering={type === "search" ? undefined : FadeInDown}
>
- <FlatList
+ <FlashList
style={styles}
- keyExtractor={_keyExtractor}
ref={scrollRef}
testID={notesnook.list.id}
data={listData}
renderItem={renderItem}
onScroll={_onScroll}
- windowSize={5}
onMomentumScrollEnd={() => {
tabBarRef.current?.unlock();
}}
+ estimatedItemSize={isCompactModeEnabled ? 60 : 100}
directionalLockEnabled={true}
- initialNumToRender={10}
keyboardShouldPersistTaps="always"
keyboardDismissMode="interactive"
refreshControl={
diff --git a/apps/mobile/app/components/sheets/move-notes/movenote.tsx b/apps/mobile/app/components/sheets/move-notes/movenote.tsx
index 98ff0ae9f..8f50049af 100644
--- a/apps/mobile/app/components/sheets/move-notes/movenote.tsx
+++ b/apps/mobile/app/components/sheets/move-notes/movenote.tsx
@@ -17,11 +17,11 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+import { FlashList } from "@shopify/flash-list";
import { NotebookType, NoteType, TopicType } from "app/utils/types";
import React, { RefObject, useState } from "react";
-import { Platform, View } from "react-native";
+import { Platform, useWindowDimensions, View } from "react-native";
import ActionSheet from "react-native-actions-sheet";
-import { FlatList } from "react-native-gesture-handler";
import { db } from "../../../common/database";
import {
eSendEvent,
@@ -62,7 +62,7 @@ export const MoveNotes = ({
}) => {
const colors = useThemeStore((state) => state.colors);
const [currentNotebook, setCurrentNotebook] = useState(notebook);
-
+ const { height } = useWindowDimensions();
let notes = db.notes?.all as NoteType[];
const [selectedNoteIds, setSelectedNoteIds] = useState<string[]>([]);
@@ -74,22 +74,25 @@ export const MoveNotes = ({
return noteIds.indexOf(note.id) === -1;
});
- const select = (id: string) => {
- const index = selectedNoteIds.indexOf(id);
- if (index > -1) {
- setSelectedNoteIds((selectedNoteIds) => {
- const next = [...selectedNoteIds];
- next.splice(index, 1);
- return next;
- });
- } else {
- setSelectedNoteIds((selectedNoteIds) => {
- const next = [...selectedNoteIds];
- next.push(id);
- return next;
- });
- }
- };
+ const select = React.useCallback(
+ (id: string) => {
+ const index = selectedNoteIds.indexOf(id);
+ if (index > -1) {
+ setSelectedNoteIds((selectedNoteIds) => {
+ const next = [...selectedNoteIds];
+ next.splice(index, 1);
+ return next;
+ });
+ } else {
+ setSelectedNoteIds((selectedNoteIds) => {
+ const next = [...selectedNoteIds];
+ next.push(id);
+ return next;
+ });
+ }
+ },
+ [selectedNoteIds]
+ );
const openAddTopicDialog = () => {
presentDialog({
@@ -131,69 +134,76 @@ export const MoveNotes = ({
return true;
};
- const renderItem = ({ item }: { item: CommonItemType }) => {
- return (
- <PressableButton
- testID="listitem.select"
- onPress={() => {
- if (item.type == "topic") {
- setTopic(topic || (item as TopicType));
- } else {
- select(item.id);
- }
- }}
- type={"transparent"}
- customStyle={{
- paddingVertical: 12,
- justifyContent: "space-between",
- paddingHorizontal: 12,
- flexDirection: "row"
- }}
- >
- <View
- style={{
- flexShrink: 1
+ const renderItem = React.useCallback(
+ ({ item }: { item: CommonItemType }) => {
+ return (
+ <PressableButton
+ testID="listitem.select"
+ onPress={() => {
+ if (item.type == "topic") {
+ setTopic(topic || (item as TopicType));
+ } else {
+ select(item.id);
+ }
+ }}
+ type={"transparent"}
+ customStyle={{
+ paddingVertical: 12,
+ justifyContent: "space-between",
+ paddingHorizontal: 12,
+ flexDirection: "row"
}}
>
- <Paragraph
- numberOfLines={1}
- color={item?.id === topic?.id ? colors.accent : colors.pri}
- >
- {item.title}
- </Paragraph>
- {item.type == "note" && item.headline ? (
- <Paragraph numberOfLines={1} color={colors.icon} size={SIZE.xs + 1}>
- {item.headline}
- </Paragraph>
- ) : null}
- </View>
-
- {item.type === "topic" ? (
- <Paragraph
+ <View
style={{
- fontSize: SIZE.xs
+ flexShrink: 1
}}
- color={colors.icon}
>
- {item.notes?.length} Notes
- </Paragraph>
- ) : null}
+ <Paragraph
+ numberOfLines={1}
+ color={item?.id === topic?.id ? colors.accent : colors.pri}
+ >
+ {item.title}
+ </Paragraph>
+ {item.type == "note" && item.headline ? (
+ <Paragraph
+ numberOfLines={1}
+ color={colors.icon}
+ size={SIZE.xs + 1}
+ >
+ {item.headline}
+ </Paragraph>
+ ) : null}
+ </View>
- {selectedNoteIds.indexOf(item.id) > -1 ? (
- <IconButton
- customStyle={{
- width: undefined,
- height: undefined,
- backgroundColor: "transparent"
- }}
- name="check"
- type="grayAccent"
- color={colors.accent}
- />
- ) : null}
- </PressableButton>
- );
- };
+ {item.type === "topic" ? (
+ <Paragraph
+ style={{
+ fontSize: SIZE.xs
+ }}
+ color={colors.icon}
+ >
+ {item.notes?.length} Notes
+ </Paragraph>
+ ) : null}
+
+ {selectedNoteIds.indexOf(item.id) > -1 ? (
+ <IconButton
+ customStyle={{
+ width: undefined,
+ height: undefined,
+ backgroundColor: "transparent"
+ }}
+ name="check"
+ type="grayAccent"
+ color={colors.accent}
+ />
+ ) : null}
+ </PressableButton>
+ );
+ },
+ [colors.accent, colors.icon, colors.pri, select, selectedNoteIds, topic]
+ );
/**
*
@@ -202,7 +212,8 @@ export const MoveNotes = ({
<View
style={{
paddingHorizontal: 12,
- maxHeight: Platform.OS === "ios" ? "96%" : "97%"
+ maxHeight: Platform.OS === "ios" ? "96%" : "97%",
+ height: height * 0.9
}}
>
<Dialog context="local" />
@@ -265,7 +276,7 @@ export const MoveNotes = ({
</>
)}
- <FlatList
+ <FlashList
nestedScrollEnabled
onMomentumScrollEnd={() => {
fwdRef.current?.handleChildScrollEnd();
diff --git a/apps/mobile/native/globals.js b/apps/mobile/native/globals.js
index 14751290e..b02359546 100644
--- a/apps/mobile/native/globals.js
+++ b/apps/mobile/native/globals.js
@@ -1,6 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
-import { setJSExceptionHandler } from 'react-native-exception-handler';
-
global.Buffer = require('buffer').Buffer;
//import { ScriptManager, Script } from '@callstack/repack/client';
import '../app/common/logger/index';
@@ -22,13 +20,6 @@ import { DOMParser } from './worker.js';
// }
global.DOMParser = DOMParser;
-//=================================================
-// ADVANCED use case:
-const exceptionhandler = (error, isFatal) => {
- // TODO
-};
-setJSExceptionHandler(exceptionhandler, true);
-
// try {
// const shared = ScriptManager.shared;
// } catch (e) {
diff --git a/apps/mobile/native/package.json b/apps/mobile/native/package.json
index fcedc9eb6..f18eea2ca 100644
--- a/apps/mobile/native/package.json
+++ b/apps/mobile/native/package.json
@@ -12,7 +12,6 @@
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-native-community/toolbar-android": "^0.2.1",
"@react-native-masked-view/masked-view": "^0.2.6",
- "@react-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/elements": "^1.3.3",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "6.6.2",
@@ -27,7 +26,6 @@
"react-native-device-info": "^8.4.1",
"react-native-document-picker": "^7.1.1",
"react-native-eventsource": "github:ammarahm-ed/react-native-eventsource",
- "react-native-exception-handler": "^2.10.10",
"react-native-exit-app": "https://github.com/ammarahm-ed/react-native-exit-app.git",
"react-native-file-viewer": "^2.1.1",
"react-native-fingerprint-scanner": "https://github.com/ammarahm-ed/react-native-fingerprint-scanner.git",
@@ -41,7 +39,7 @@
"react-native-orientation": "https://github.com/yamill/react-native-orientation.git",
"react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git",
"react-native-push-notification": "github:ammarahm-ed/react-native-push-notification",
- "react-native-reanimated": "2.9.1",
+ "react-native-reanimated": "2.13.0",
"react-native-safe-area-context": "^4.3.1",
"react-native-scoped-storage": "^1.9.3",
"react-native-screens": "^3.13.1",
@@ -54,7 +52,8 @@
"react-native-webview": "^11.14.1",
"rn-extensions-share": "^2.4.0",
"rn-fetch-blob": "^0.12.0",
- "react-native-gzip":"1.0.0"
+ "react-native-gzip":"1.0.0",
+ "@shopify/flash-list":"1.4.0"
},
"devDependencies": {
"@babel/core": "^7.12.9",
diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.json
index f0799d230..26d32ad19 100644
--- a/apps/mobile/package-lock.json
+++ b/apps/mobile/package-lock.json
@@ -64,11 +64,11 @@
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-native-community/toolbar-android": "^0.2.1",
"@react-native-masked-view/masked-view": "^0.2.6",
- "@react-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/elements": "^1.3.3",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "6.6.2",
"@sayem314/react-native-keep-awake": "^1.0.4",
+ "@shopify/flash-list": "1.4.0",
"deprecated-react-native-prop-types": "^2.3.0",
"react": "18.0.0",
"react-native": "0.69.7",
@@ -79,7 +79,6 @@
"react-native-device-info": "^8.4.1",
"react-native-document-picker": "^7.1.1",
"react-native-eventsource": "github:ammarahm-ed/react-native-eventsource",
- "react-native-exception-handler": "^2.10.10",
"react-native-exit-app": "https://github.com/ammarahm-ed/react-native-exit-app.git",
"react-native-file-viewer": "^2.1.1",
"react-native-fingerprint-scanner": "https://github.com/ammarahm-ed/react-native-fingerprint-scanner.git",
@@ -94,7 +93,7 @@
"react-native-orientation": "https://github.com/yamill/react-native-orientation.git",
"react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git",
"react-native-push-notification": "github:ammarahm-ed/react-native-push-notification",
- "react-native-reanimated": "2.9.1",
+ "react-native-reanimated": "2.13.0",
"react-native-safe-area-context": "^4.3.1",
"react-native-scoped-storage": "^1.9.3",
"react-native-screens": "^3.13.1",
@@ -734,6 +733,7 @@
"version": "7.18.9",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz",
"integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==",
+ "dev": true,
"dependencies": {
"@babel/helper-plugin-utils": "^7.18.9",
"@babel/plugin-syntax-export-namespace-from": "^7.8.3"
@@ -985,6 +985,7 @@
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz",
"integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==",
+ "dev": true,
"dependencies": {
"@babel/helper-plugin-utils": "^7.8.3"
},
@@ -5450,23 +5451,6 @@
"resolved": "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-2.0.0.tgz",
"integrity": "sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ=="
},
- "node_modules/@react-navigation/bottom-tabs": {
- "version": "6.4.0",
- "resolved": "https://registry.npmjs.org/@react-navigation/bottom-tabs/-/bottom-tabs-6.4.0.tgz",
- "integrity": "sha512-90CapiXjiWudbCiki9e6fOr/CECQRguIxv5OD7IBfbAMGX5GGiJpX8aqiHAz2DxpAz31v4JZcUr945+lFhXBfA==",
- "dependencies": {
- "@react-navigation/elements": "^1.3.6",
- "color": "^4.2.3",
- "warn-once": "^0.1.0"
- },
- "peerDependencies": {
- "@react-navigation/native": "^6.0.0",
- "react": "*",
- "react-native": "*",
- "react-native-safe-area-context": ">= 3.0.0",
- "react-native-screens": ">= 3.0.0"
- }
- },
"node_modules/@react-navigation/core": {
"version": "6.4.0",
"resolved": "https://registry.npmjs.org/@react-navigation/core/-/core-6.4.0.tgz",
@@ -5576,6 +5560,20 @@
"url": "https://ko-fi.com/killymxi"
}
},
+ "node_modules/@shopify/flash-list": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@shopify/flash-list/-/flash-list-1.4.0.tgz",
+ "integrity": "sha512-PvPOyk353LuETFnNA038+QaJsAFlCQ2TYC7DHP3YnYqTX72g2BM6qLoLsPaptXKuoXX+dinOo0MbEm7HDjTy1g==",
+ "dependencies": {
+ "recyclerlistview": "4.2.0",
+ "tslib": "2.4.0"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "*",
+ "react": "*",
+ "react-native": "*"
+ }
+ },
"node_modules/@sideway/address": {
"version": "4.1.4",
"resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz",
@@ -7803,18 +7801,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/color": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
- "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
- "dependencies": {
- "color-convert": "^2.0.1",
- "color-string": "^1.9.0"
- },
- "engines": {
- "node": ">=12.5.0"
- }
- },
"node_modules/color-convert": {
"version": "1.9.3",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
@@ -7828,31 +7814,6 @@
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="
},
- "node_modules/color-string": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
- "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
- "dependencies": {
- "color-name": "^1.0.0",
- "simple-swizzle": "^0.2.2"
- }
- },
- "node_modules/color/node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/color/node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- },
"node_modules/colorette": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz",
@@ -18233,15 +18194,6 @@
"react-native": "*"
}
},
- "node_modules/react-native-exception-handler": {
- "version": "2.10.10",
- "resolved": "https://registry.npmjs.org/react-native-exception-handler/-/react-native-exception-handler-2.10.10.tgz",
- "integrity": "sha512-otAXGoZDl1689OoUJWN/rXxVbdoZ3xcmyF1uq/CsizdLwwyZqVGd6d+p/vbYvnF996FfEyAEBnHrdFxulTn51w==",
- "peerDependencies": {
- "react": "*",
- "react-native": "*"
- }
- },
"node_modules/react-native-exit-app": {
"version": "1.1.0",
"resolved": "git+ssh://[email protected]/ammarahm-ed/react-native-exit-app.git#3087d4bce1320227384d24b34b354600457a817d",
@@ -18419,11 +18371,10 @@
}
},
"node_modules/react-native-reanimated": {
- "version": "2.9.1",
- "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-2.9.1.tgz",
- "integrity": "sha512-309SIhDBwY4F1n6e5Mr5D1uPZm2ESIcmZsGXHUu8hpKX4oIOlZj2MilTk+kHhi05LjChoJkcpfkstotCJmPRPg==",
+ "version": "2.13.0",
+ "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-2.13.0.tgz",
+ "integrity": "sha512-yUHyYVIegWWIza4+nVyS3CSmI/Mc8kLFVHw2c6gnSHaYhYA4LeEjH/jBkoMzHk9Xd0Ra3cwtjYKAMG8OTp6JVg==",
"dependencies": {
- "@babel/plugin-proposal-export-namespace-from": "^7.17.12",
"@babel/plugin-transform-object-assign": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@types/invariant": "^2.2.35",
@@ -18656,6 +18607,20 @@
"node": ">=0.10.0"
}
},
+ "node_modules/recyclerlistview": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/recyclerlistview/-/recyclerlistview-4.2.0.tgz",
+ "integrity": "sha512-uuBCi0c+ggqHKwrzPX4Z/mJOzsBbjZEAwGGmlwpD/sD7raXixdAbdJ6BTcAmuWG50Cg4ru9p12M94Njwhr/27A==",
+ "dependencies": {
+ "lodash.debounce": "4.0.8",
+ "prop-types": "15.8.1",
+ "ts-object-utils": "0.0.5"
+ },
+ "peerDependencies": {
+ "react": ">= 15.2.1",
+ "react-native": ">= 0.30.0"
+ }
+ },
"node_modules/regenerate": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",
@@ -19428,19 +19393,6 @@
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
},
- "node_modules/simple-swizzle": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
- "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
- "dependencies": {
- "is-arrayish": "^0.3.1"
- }
- },
- "node_modules/simple-swizzle/node_modules/is-arrayish": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
- "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="
- },
"node_modules/sisteransi": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
@@ -20683,6 +20635,11 @@
"node": ">=12"
}
},
+ "node_modules/ts-object-utils": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/ts-object-utils/-/ts-object-utils-0.0.5.tgz",
+ "integrity": "sha512-iV0GvHqOmilbIKJsfyfJY9/dNHCs969z3so90dQWsO1eMMozvTpnB1MEaUbb3FYtZTGjv5sIy/xmslEz0Rg2TA=="
+ },
"node_modules/tslib": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",
@@ -21873,6 +21830,7 @@
"version": "7.18.9",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz",
"integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==",
+ "dev": true,
"requires": {
"@babel/helper-plugin-utils": "^7.18.9",
"@babel/plugin-syntax-export-namespace-from": "^7.8.3"
@@ -22034,6 +21992,7 @@
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz",
"integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==",
+ "dev": true,
"requires": {
"@babel/helper-plugin-utils": "^7.8.3"
}
@@ -24258,11 +24217,11 @@
"@react-native-community/push-notification-ios": "^1.10.1",
"@react-native-community/toolbar-android": "^0.2.1",
"@react-native-masked-view/masked-view": "^0.2.6",
- "@react-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/elements": "^1.3.3",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "6.6.2",
"@sayem314/react-native-keep-awake": "^1.0.4",
+ "@shopify/flash-list": "1.4.0",
"@types/html-to-text": "^8.0.1",
"@types/jest": "^27.0.3",
"@types/react-native": "^0.69.1",
@@ -24301,7 +24260,6 @@
"react-native-device-info": "^8.4.1",
"react-native-document-picker": "^7.1.1",
"react-native-eventsource": "github:ammarahm-ed/react-native-eventsource",
- "react-native-exception-handler": "^2.10.10",
"react-native-exit-app": "https://github.com/ammarahm-ed/react-native-exit-app.git",
"react-native-file-viewer": "^2.1.1",
"react-native-fingerprint-scanner": "https://github.com/ammarahm-ed/react-native-fingerprint-scanner.git",
@@ -24316,7 +24274,7 @@
"react-native-orientation": "https://github.com/yamill/react-native-orientation.git",
"react-native-privacy-snapshot": "https://github.com/standardnotes/react-native-privacy-snapshot.git",
"react-native-push-notification": "github:ammarahm-ed/react-native-push-notification",
- "react-native-reanimated": "2.9.1",
+ "react-native-reanimated": "2.13.0",
"react-native-safe-area-context": "^4.3.1",
"react-native-scoped-storage": "^1.9.3",
"react-native-screens": "^3.13.1",
@@ -25370,16 +25328,6 @@
"resolved": "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-2.0.0.tgz",
"integrity": "sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ=="
},
- "@react-navigation/bottom-tabs": {
- "version": "6.4.0",
- "resolved": "https://registry.npmjs.org/@react-navigation/bottom-tabs/-/bottom-tabs-6.4.0.tgz",
- "integrity": "sha512-90CapiXjiWudbCiki9e6fOr/CECQRguIxv5OD7IBfbAMGX5GGiJpX8aqiHAz2DxpAz31v4JZcUr945+lFhXBfA==",
- "requires": {
- "@react-navigation/elements": "^1.3.6",
- "color": "^4.2.3",
- "warn-once": "^0.1.0"
- }
- },
"@react-navigation/core": {
"version": "6.4.0",
"resolved": "https://registry.npmjs.org/@react-navigation/core/-/core-6.4.0.tgz",
@@ -25454,6 +25402,15 @@
"selderee": "^0.6.0"
}
},
+ "@shopify/flash-list": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@shopify/flash-list/-/flash-list-1.4.0.tgz",
+ "integrity": "sha512-PvPOyk353LuETFnNA038+QaJsAFlCQ2TYC7DHP3YnYqTX72g2BM6qLoLsPaptXKuoXX+dinOo0MbEm7HDjTy1g==",
+ "requires": {
+ "recyclerlistview": "4.2.0",
+ "tslib": "2.4.0"
+ }
+ },
"@sideway/address": {
"version": "4.1.4",
"resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz",
@@ -27161,30 +27118,6 @@
"object-visit": "^1.0.0"
}
},
- "color": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
- "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
- "requires": {
- "color-convert": "^2.0.1",
- "color-string": "^1.9.0"
- },
- "dependencies": {
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- }
- }
- },
"color-convert": {
"version": "1.9.3",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
@@ -27198,15 +27131,6 @@
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="
},
- "color-string": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
- "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
- "requires": {
- "color-name": "^1.0.0",
- "simple-swizzle": "^0.2.2"
- }
- },
"colorette": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz",
@@ -34967,11 +34891,6 @@
"version": "git+ssh://[email protected]/ammarahm-ed/react-native-eventsource.git#1ba07252e08c564d34281cb87fda8107a9348327",
"from": "react-native-eventsource@github:ammarahm-ed/react-native-eventsource"
},
- "react-native-exception-handler": {
- "version": "2.10.10",
- "resolved": "https://registry.npmjs.org/react-native-exception-handler/-/react-native-exception-handler-2.10.10.tgz",
- "integrity": "sha512-otAXGoZDl1689OoUJWN/rXxVbdoZ3xcmyF1uq/CsizdLwwyZqVGd6d+p/vbYvnF996FfEyAEBnHrdFxulTn51w=="
- },
"react-native-exit-app": {
"version": "git+ssh://[email protected]/ammarahm-ed/react-native-exit-app.git#3087d4bce1320227384d24b34b354600457a817d",
"from": "react-native-exit-app@https://github.com/ammarahm-ed/react-native-exit-app.git"
@@ -35086,11 +35005,10 @@
}
},
"react-native-reanimated": {
- "version": "2.9.1",
- "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-2.9.1.tgz",
- "integrity": "sha512-309SIhDBwY4F1n6e5Mr5D1uPZm2ESIcmZsGXHUu8hpKX4oIOlZj2MilTk+kHhi05LjChoJkcpfkstotCJmPRPg==",
+ "version": "2.13.0",
+ "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-2.13.0.tgz",
+ "integrity": "sha512-yUHyYVIegWWIza4+nVyS3CSmI/Mc8kLFVHw2c6gnSHaYhYA4LeEjH/jBkoMzHk9Xd0Ra3cwtjYKAMG8OTp6JVg==",
"requires": {
- "@babel/plugin-proposal-export-namespace-from": "^7.17.12",
"@babel/plugin-transform-object-assign": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@types/invariant": "^2.2.35",
@@ -35250,6 +35168,16 @@
}
}
},
+ "recyclerlistview": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/recyclerlistview/-/recyclerlistview-4.2.0.tgz",
+ "integrity": "sha512-uuBCi0c+ggqHKwrzPX4Z/mJOzsBbjZEAwGGmlwpD/sD7raXixdAbdJ6BTcAmuWG50Cg4ru9p12M94Njwhr/27A==",
+ "requires": {
+ "lodash.debounce": "4.0.8",
+ "prop-types": "15.8.1",
+ "ts-object-utils": "0.0.5"
+ }
+ },
"regenerate": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",
@@ -35844,21 +35772,6 @@
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
},
- "simple-swizzle": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
- "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
- "requires": {
- "is-arrayish": "^0.3.1"
- },
- "dependencies": {
- "is-arrayish": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
- "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="
- }
- }
- },
"sisteransi": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
@@ -36804,6 +36717,11 @@
}
}
},
+ "ts-object-utils": {
+ "version": "0.0.5",
+ "resolved": "https://registry.npmjs.org/ts-object-utils/-/ts-object-utils-0.0.5.tgz",
+ "integrity": "sha512-iV0GvHqOmilbIKJsfyfJY9/dNHCs969z3so90dQWsO1eMMozvTpnB1MEaUbb3FYtZTGjv5sIy/xmslEz0Rg2TA=="
+ },
"tslib": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",