UNPKG

1.7 kBTypeScriptView Raw
1/// <reference types="react" />
2import type { AnimatedComponentProps, IAnimatedComponentInternal, IJSPropsUpdater, InitialComponentProps } from './commonTypes';
3declare class JSPropsUpdaterPaper implements IJSPropsUpdater {
4 private static _tagToComponentMapping;
5 private _reanimatedEventEmitter;
6 constructor();
7 addOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
8 removeOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
9}
10declare class JSPropsUpdaterFabric implements IJSPropsUpdater {
11 private static _tagToComponentMapping;
12 private static isInitialized;
13 constructor();
14 addOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
15 removeOnJSPropsChangeListener(animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
16}
17declare class JSPropsUpdaterWeb implements IJSPropsUpdater {
18 addOnJSPropsChangeListener(_animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
19 removeOnJSPropsChangeListener(_animatedComponent: React.Component<AnimatedComponentProps<InitialComponentProps>> & IAnimatedComponentInternal): void;
20}
21type JSPropsUpdaterOptions = typeof JSPropsUpdaterWeb | typeof JSPropsUpdaterFabric | typeof JSPropsUpdaterPaper;
22declare let JSPropsUpdater: JSPropsUpdaterOptions;
23export default JSPropsUpdater;
24//# sourceMappingURL=JSPropsUpdater.d.ts.map
\No newline at end of file