mobile: fix tsc errors

This commit is contained in:
Ammar Ahmed
2025-02-06 10:59:29 +05:00
parent b208a468c4
commit 229488eb29
15 changed files with 62 additions and 59 deletions

View File

@@ -27,7 +27,7 @@ export const POSITIONS = {
let RNTooltips: any;
let prevTarget: any = null;
function show(event: any, text: string, position = 2) {
const tabBarRef = require("./global-refs").tabBarRef;
const fluidTabsRef = require("./global-refs").fluidTabsRef;
if (!RNTooltips) {
RNTooltips = require("react-native-tooltips").default;
}
@@ -35,7 +35,7 @@ function show(event: any, text: string, position = 2) {
prevTarget && RNTooltips.Dismiss(prevTarget);
prevTarget = null;
prevTarget = event._targetInst.ref.current;
RNTooltips.Show(prevTarget, tabBarRef.current?.node?.current, {
RNTooltips.Show(prevTarget, fluidTabsRef.current?.node?.current, {
text: text,
tintColor: "#000000",
corner: Platform.OS === "ios" ? 5 : 40,