mobile: fix ts errors

This commit is contained in:
Ammar Ahmed
2025-11-25 12:40:51 +05:00
parent 5ea42e3297
commit 6335b1007b
5 changed files with 12 additions and 61358 deletions

View File

@@ -20,7 +20,7 @@ import { EVENTS, Note } from "@notesnook/core";
import { strings } from "@notesnook/intl";
import { useThemeColors } from "@notesnook/theme";
import React, { useEffect } from "react";
import { View } from "react-native";
import { ListRenderItemInfo, View } from "react-native";
import { FlatList } from "react-native-actions-sheet";
import Icon from "react-native-vector-icons/MaterialCommunityIcons";
import { db } from "../../../common/database";
@@ -187,7 +187,7 @@ export default function EditorTabs({
]);
const renderTabItem = React.useCallback(
({ item }: { item: TabItem }) => {
({ item }: ListRenderItemInfo<TabItem>) => {
return (
<TabItemComponent
key={item.id}

View File

@@ -165,6 +165,8 @@ export const UserSheet = () => {
message: strings.notLoggedIn(),
actionText: strings.loginMessageActionText(),
icon: "account-outline",
id: "log-in",
type: "normal",
onPress: () => {
ref.current?.hide();
Navigation.navigate("Auth", {

View File

@@ -1,12 +1,12 @@
{
"name": "@notesnook/mobile",
"version": "3.3.9",
"version": "3.3.10-beta.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@notesnook/mobile",
"version": "3.3.9",
"version": "3.3.10-beta.0",
"hasInstallScript": true,
"license": "GPL-3.0-or-later",
"dependencies": {
@@ -71,7 +71,7 @@
"react": "19.1.1",
"react-async-hook": "^4.0.0",
"react-native": "0.82.1",
"react-native-actions-sheet": "^10.0.0-alpha.7",
"react-native-actions-sheet": "10.0.0-alpha.8",
"react-native-actions-shortcuts": "^1.0.1",
"react-native-background-actions": "^2.6.6",
"react-native-begin-background-task": "github:blockfirm/react-native-begin-background-task",
@@ -17119,9 +17119,9 @@
}
},
"node_modules/react-native-actions-sheet": {
"version": "10.0.0-alpha.7",
"resolved": "https://registry.npmjs.org/react-native-actions-sheet/-/react-native-actions-sheet-10.0.0-alpha.7.tgz",
"integrity": "sha512-17qNNPZoqDftb6eeZL5M7m+XLwl7MBOpHq7TID8qeaHaw/A1oaHbD+4UFtzDYfosoSHFLZr1ooxXp+g4D//zmw==",
"version": "10.0.0-alpha.8",
"resolved": "https://registry.npmjs.org/react-native-actions-sheet/-/react-native-actions-sheet-10.0.0-alpha.8.tgz",
"integrity": "sha512-olKqucpGaxP/kiO2/nw0uPXn69ZdWWhcHFzu2tcv5RBMl+PhRv870HuODbE21X4jXY/fWTG6FwPJqRqWpKkY8A==",
"license": "MIT",
"peerDependencies": {
"react-native": "*",

View File

@@ -87,7 +87,7 @@
"react": "19.1.1",
"react-async-hook": "^4.0.0",
"react-native": "0.82.1",
"react-native-actions-sheet": "^10.0.0-alpha.7",
"react-native-actions-sheet": "10.0.0-alpha.8",
"react-native-actions-shortcuts": "^1.0.1",
"react-native-background-actions": "^2.6.6",
"react-native-begin-background-task": "github:blockfirm/react-native-begin-background-task",

File diff suppressed because one or more lines are too long