react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
47 lines (38 loc) • 1.46 kB
JavaScript
;
import { ReanimatedModule } from '../../ReanimatedModule';
// COMMON
export function setViewStyle(viewTag, style) {
ReanimatedModule.setViewStyle(viewTag, style);
}
export function markNodeAsRemovable(shadowNodeWrapper) {
ReanimatedModule.markNodeAsRemovable(shadowNodeWrapper);
}
export function unmarkNodeAsRemovable(viewTag) {
ReanimatedModule.unmarkNodeAsRemovable(viewTag);
}
// ANIMATIONS
// Keyframes
export function registerCSSKeyframes(animationName, viewName, keyframesConfig) {
ReanimatedModule.registerCSSKeyframes(animationName, viewName, keyframesConfig);
}
export function unregisterCSSKeyframes(animationName, viewName) {
ReanimatedModule.unregisterCSSKeyframes(animationName, viewName);
}
// View animations
export function applyCSSAnimations(shadowNodeWrapper, animationUpdates) {
ReanimatedModule.applyCSSAnimations(shadowNodeWrapper, animationUpdates);
}
export function unregisterCSSAnimations(viewTag) {
ReanimatedModule.unregisterCSSAnimations(viewTag);
}
// TRANSITIONS
export function registerCSSTransition(shadowNodeWrapper, transitionConfig) {
ReanimatedModule.registerCSSTransition(shadowNodeWrapper, transitionConfig);
}
export function updateCSSTransition(viewTag, configUpdates) {
ReanimatedModule.updateCSSTransition(viewTag, configUpdates);
}
export function unregisterCSSTransition(viewTag) {
ReanimatedModule.unregisterCSSTransition(viewTag);
}
//# sourceMappingURL=proxy.js.map