import React from 'react'; import type { StyleProp, ViewStyle } from 'react-native'; import type { SharedValue } from 'react-native-reanimated'; export interface ContextualContextVars

{ view: React.ReactNode; viewLayout: { x: number; y: number; width: number; height: number }; viewStyle: StyleProp; Menu: React.ComponentType

; menuProps: P; menuSize: { width: number; height: number }; onClose: () => void; } export interface ContextualContextType { anim: SharedValue; showContext:

(vars: ContextualContextVars

) => void; closeContext: () => void; openContext?: () => void; } export const ContextualContext = React.createContext({ anim: { value: 0 }, showContext: () => {}, closeContext: () => {}, });