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 ;
menuProps: P;
menuSize: { width: number; height: number };
onClose: () => void;
}
export interface ContextualContextType {
anim: SharedValue (vars: ContextualContextVars ) => void;
closeContext: () => void;
openContext?: () => void;
}
export const ContextualContext = React.createContext