Home
last modified time | relevance | path

Searched refs:refProp (Results 1 – 3 of 3) sorted by relevance

/expo/packages/expo-gl/build/
H A DCanvas.js14 function setRef(refProp, ref) { argument
15 if (!refProp)
17 if (typeof refProp === 'function') {
18 refProp(ref);
20 else if ('current' in refProp) {
22 refProp.current = ref;
H A DCanvas.js.map1refProp: React.Ref<T>, ref: T | null) {\n if (!refProp) return;\n\n if (typeof refProp === 'func…
/expo/packages/expo-gl/src/
H A DCanvas.tsx15 function setRef<T>(refProp: React.Ref<T>, ref: T | null) {
16 if (!refProp) return;
18 if (typeof refProp === 'function') {
19 refProp(ref);
20 } else if ('current' in refProp) {
22 refProp.current = ref;