GT2/Ejectable/node_modules/react-native-gesture-handler/lib/module/gestureHandlerRootHOC.js

21 lines
772 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
import * as React from 'react';
import { StyleSheet } from 'react-native';
import hoistNonReactStatics from 'hoist-non-react-statics';
import GestureHandlerRootView from './GestureHandlerRootView';
export default function gestureHandlerRootHOC(Component, containerStyles) {
function Wrapper(props) {
return /*#__PURE__*/React.createElement(GestureHandlerRootView, {
style: [styles.container, containerStyles]
}, /*#__PURE__*/React.createElement(Component, props));
}
Wrapper.displayName = "gestureHandlerRootHOC(".concat(Component.displayName || Component.name, ")");
hoistNonReactStatics(Wrapper, Component);
return Wrapper;
}
const styles = StyleSheet.create({
container: {
flex: 1
}
});
//# sourceMappingURL=gestureHandlerRootHOC.js.map