import * as React from 'react'; import { StyleSheet, StyleProp, ViewStyle } from 'react-native'; import hoistNonReactStatics from 'hoist-non-react-statics'; import GestureHandlerRootView from './GestureHandlerRootView'; export default function gestureHandlerRootHOC

( Component: React.ComponentType

, containerStyles?: StyleProp ): React.ComponentType

{ function Wrapper(props: P) { return ( ); } Wrapper.displayName = `gestureHandlerRootHOC(${ Component.displayName || Component.name })`; // @ts-ignore - hoistNonReactStatics uses old version of @types/react hoistNonReactStatics(Wrapper, Component); return Wrapper; } const styles = StyleSheet.create({ container: { flex: 1 }, });