UNPKG

@gluestack-ui/utils

Version:
13 lines (12 loc) 285 B
export function mergeRefs(refs) { return (value) => { refs.forEach((ref) => { if (typeof ref === 'function') { ref(value); } else if (ref != null) { ref.current = value; } }); }; }