You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
573 B

import { startListening } from './handlers/gestures/eventReceiver';
import RNGestureHandlerModule from './RNGestureHandlerModule';
import { isFabric } from './utils';
let fabricInitialized = false;
export function initialize() {
startListening();
} // since isFabric() may give wrong results before the first render, we call this
// method during render of GestureHandlerRootView
export function maybeInitializeFabric() {
if (isFabric() && !fabricInitialized) {
RNGestureHandlerModule.install();
fabricInitialized = true;
}
}
//# sourceMappingURL=init.js.map