diff --git a/apps/mobile/app/components/sheets/editor-tabs/index.tsx b/apps/mobile/app/components/sheets/editor-tabs/index.tsx index 2eb069cea..7090f7468 100644 --- a/apps/mobile/app/components/sheets/editor-tabs/index.tsx +++ b/apps/mobile/app/components/sheets/editor-tabs/index.tsx @@ -19,6 +19,7 @@ along with this program. If not, see . import { useThemeColors } from "@notesnook/theme"; import React from "react"; import { View } from "react-native"; +import { FlatList } from "react-native-actions-sheet"; import Icon from "react-native-vector-icons/MaterialCommunityIcons"; import { useDBItem } from "../../../hooks/use-db-item"; import { useTabStore } from "../../../screens/editor/tiptap/use-tab-store"; @@ -134,11 +135,26 @@ export default function EditorTabs({ state.currentTab ]); + const renderTabItem = React.useCallback( + ({ item }: { item: TabItem }) => { + return ( + + ); + }, + [close, currentTab] + ); + return ( - {tabs.map((tab) => ( - - ))} + ); }