Files
Schnappix/node_modules/react-native-gesture-handler/lib/module/components/GestureHandlerRootView.android.js
T

30 lines
1005 B
JavaScript

"use strict";
import * as React from 'react';
import { StyleSheet } from 'react-native';
import { maybeInitializeFabric } from '../init';
import GestureHandlerRootViewContext from '../GestureHandlerRootViewContext';
import GestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
import { jsx as _jsx } from "react/jsx-runtime";
export default function GestureHandlerRootView({
style,
...rest
}) {
// 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__*/_jsx(GestureHandlerRootViewContext.Provider, {
value: true,
children: /*#__PURE__*/_jsx(GestureHandlerRootViewNativeComponent, {
style: style ?? styles.container,
...rest
})
});
}
const styles = StyleSheet.create({
container: {
flex: 1
}
});
//# sourceMappingURL=GestureHandlerRootView.android.js.map