From b4eba252f5add7a9e09053f940665ad74acdce61 Mon Sep 17 00:00:00 2001 From: Amauri Dias Date: Fri, 5 Jan 2024 04:19:34 -0300 Subject: [PATCH] fix: types for gestureHandlerRootHOC (#2712) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description fix gestureHandlerRootHOC type error props declared as an interface Fixes #2711 ## Test plan Check type gestureHandlerRootHOC --------- Co-authored-by: MichaƂ Bert <63123542+m-bert@users.noreply.github.com> --- src/components/gestureHandlerRootHOC.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/gestureHandlerRootHOC.tsx b/src/components/gestureHandlerRootHOC.tsx index 5103c75d2d..82a93138d0 100644 --- a/src/components/gestureHandlerRootHOC.tsx +++ b/src/components/gestureHandlerRootHOC.tsx @@ -3,9 +3,7 @@ import { StyleSheet, StyleProp, ViewStyle } from 'react-native'; import hoistNonReactStatics from 'hoist-non-react-statics'; import GestureHandlerRootView from './GestureHandlerRootView'; -export default function gestureHandlerRootHOC< - P extends Record ->( +export default function gestureHandlerRootHOC

( Component: React.ComponentType

, containerStyles?: StyleProp ): React.ComponentType

{