A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
add new method to show tooltip
ammarahm-ed3d10ae0e120f
diff --git a/apps/mobile/src/utils/index.js b/apps/mobile/src/utils/index.jsindex d2dd50f56..6659a905f 100755--- a/apps/mobile/src/utils/index.js+++ b/apps/mobile/src/utils/index.js@@ -8,6 +8,8 @@ import {defaultState} from '../provider/DefaultState';import {createRef} from 'react';import {dummyRef} from '../components/DummyText';import {SIZE} from './SizeUtils';+import RNTooltips from 'react-native-tooltips';+import { tabBarRef } from './Refs';export async function setSetting(settings, name, value) {let s = {...settings};@@ -191,3 +193,13 @@ export function toTXT(data) {return text + op.insert;}, '');}++export function showTooltip(event, text) {+ if (!event._targetInst?.ref?.current) return;+ RNTooltips.Show(event._targetInst.ref.current, tabBarRef.current, {+ text: text,+ tintColor: 'black',+ corner: 40,+ textSize: 10,+ });+}