react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
24 lines (23 loc) • 1.66 kB
TypeScript
/// <reference types="react" />
import type { AnimatedComponentProps, IAnimatedComponentInternal, IJSPropsUpdater, InitialComponentProps } from './commonTypes';
declare class JSPropsUpdaterPaper implements IJSPropsUpdater {
private static _tagToComponentMapping;
private _reanimatedEventEmitter;
constructor();
addOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
removeOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
}
declare class JSPropsUpdaterFabric implements IJSPropsUpdater {
private static _tagToComponentMapping;
private static isInitialized;
constructor();
addOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
removeOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
}
declare class JSPropsUpdaterWeb implements IJSPropsUpdater {
addOnJSPropsChangeListener(_animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
removeOnJSPropsChangeListener(_animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
}
type JSPropsUpdaterOptions = typeof JSPropsUpdaterWeb | typeof JSPropsUpdaterFabric | typeof JSPropsUpdaterPaper;
declare let JSPropsUpdater: JSPropsUpdaterOptions;
export default JSPropsUpdater;