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.

14 lines
867 B

/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { requireNativeComponent } from 'react-native';
import { maybeInitializeFabric } from './init';
import { shouldUseCodegenNativeComponent } from './utils';
const GestureHandlerRootViewNativeComponent = shouldUseCodegenNativeComponent() ? require('./fabric/RNGestureHandlerRootViewNativeComponent').default : requireNativeComponent('RNGestureHandlerRootView');
export default function GestureHandlerRootView(props) {
// try initialize fabric on the first render, at this point we can
// reliably check if fabric is enabled (the function contains a flag
// to make sure it's called only once)
maybeInitializeFabric();
return /*#__PURE__*/React.createElement(GestureHandlerRootViewNativeComponent, props);
}
//# sourceMappingURL=GestureHandlerRootView.android.js.map