react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
21 lines (20 loc) • 538 B
JavaScript
import { runOnUI } from './threads';
let viewTags = [];
export function removeFromPropsRegistry(viewTag) {
viewTags.push(viewTag);
if (viewTags.length === 1) {
queueMicrotask(flush);
}
}
function flush() {
if (__DEV__ && !global._IS_FABRIC) {
throw new Error('PropsRegistry is only available on Fabric');
}
runOnUI(removeFromPropsRegistryOnUI)(viewTags);
viewTags = [];
}
function removeFromPropsRegistryOnUI(viewTags) {
'worklet';
_removeFromPropsRegistry(viewTags);
}
//# sourceMappingURL=PropsRegistry.js.map