manuthecoder-react-native-spotlight-tour
Version:
React Native library to implement a highly customizable app tour feature with an awesome spotlight effect
20 lines (19 loc) • 910 B
TypeScript
import { Animated, type ColorValue, type LayoutRectangle } from "react-native";
import { type BackdropPressBehavior, type Motion, type OSConfig, type Shape, type ShapeOptions, type TooltipProps, type TourStep } from "../../SpotlightTour.context";
import type { Optional, ToOptional } from "../../../helpers/common";
export interface TourOverlayRef {
hideTooltip: () => Promise<Animated.EndResult>;
}
interface TourOverlayProps extends ToOptional<TooltipProps> {
backdropOpacity: number;
color: ColorValue;
current: Optional<number>;
motion: Motion;
nativeDriver: boolean | OSConfig<boolean>;
onBackdropPress: Optional<BackdropPressBehavior>;
shape: Shape | ShapeOptions;
spot: LayoutRectangle;
tourStep: TourStep;
}
export declare const TourOverlay: import("react").ForwardRefExoticComponent<TourOverlayProps & import("react").RefAttributes<TourOverlayRef>>;
export {};