react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
26 lines (25 loc) • 809 B
JavaScript
;
import * as React from 'react';
import { StyleSheet } from 'react-native';
import GestureHandlerRootViewContext from '../GestureHandlerRootViewContext';
import GestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
import { jsx as _jsx } from "react/jsx-runtime";
export default function GestureHandlerRootView({
style,
...rest
}) {
return /*#__PURE__*/_jsx(GestureHandlerRootViewContext, {
value: true,
children: /*#__PURE__*/_jsx(GestureHandlerRootViewNativeComponent, {
style: style ?? styles.container,
...rest,
moduleId: globalThis._RNGH_MODULE_ID // Ensure moduleId is set
})
});
}
const styles = StyleSheet.create({
container: {
flex: 1
}
});
//# sourceMappingURL=GestureHandlerRootView.android.js.map