UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

18 lines 710 B
/** * Copyright (c) Nicolas Gallagher. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ElementRef } from 'react'; import type { LayoutEvent } from '../../types'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import useLayoutEffect from '../useLayoutEffect'; import UIManager from '../../exports/UIManager'; const DOM_LAYOUT_HANDLER_NAME = '__reactLayoutHandler'; let didWarn = !canUseDOM; let resizeObserver = null; declare function getResizeObserver(): ?ResizeObserver; declare export default function useElementLayout(ref: ElementRef<any>, onLayout?: ?(e: LayoutEvent) => void): any;