react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
37 lines (31 loc) • 770 B
text/typescript
;
import type {
AnimatedComponentProps,
IAnimatedComponentInternal,
IJSPropsUpdater,
InitialComponentProps,
JSPropsOperation,
} from './commonTypes';
class JSPropsUpdaterWeb implements IJSPropsUpdater {
public registerComponent(
_animatedComponent: React.Component<
AnimatedComponentProps<InitialComponentProps>
> &
IAnimatedComponentInternal
) {
// noop
}
public unregisterComponent(
_animatedComponent: React.Component<
AnimatedComponentProps<InitialComponentProps>
> &
IAnimatedComponentInternal
) {
// noop
}
public updateProps(_operations: JSPropsOperation[]) {
// noop
}
}
const jsPropsUpdater: IJSPropsUpdater = new JSPropsUpdaterWeb();
export default jsPropsUpdater;