@nghinv/react-native-app-tour
Version:
React Native app tour Library
32 lines (31 loc) • 1.19 kB
TypeScript
/**
* Created by nghinv on Wed Jun 23 2021
* Copyright (c) 2021 nghinv@lumi.biz
*/
import Animated from 'react-native-reanimated';
import type { NodesType, SceneType, TargetType } from './types';
export declare const springConfig: {
stiffness: number;
damping: number;
mass: number;
overshootClamping: boolean;
restDisplacementThreshold: number;
restSpeedThreshold: number;
};
export declare const timingConfig: {
duration: number;
easing: Animated.EasingFunction;
};
export declare function getCurrentNode(nodes: Animated.SharedValue<NodesType>, scene: SceneType, currentStep: Animated.SharedValue<number>, defaultTarget: TargetType): {
node: import("./types").NodeType | {
target: TargetType;
maskType: string;
title: string;
describe: string;
};
};
export declare function withAnimation(value: number, animated?: boolean): number;
export declare function circlePathCalculator(cx: number, cy: number, r: number): string;
export declare function circlePath(target: TargetType): string;
export declare function rectPath(target: TargetType): string;
export declare function getRectPath(target: TargetType): string;