Skip to content

Commit b4eba25

Browse files
fxamaurim-bert
andauthored
fix: types for gestureHandlerRootHOC (#2712)
## 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>
1 parent 94c462b commit b4eba25

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/gestureHandlerRootHOC.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { StyleSheet, StyleProp, ViewStyle } from 'react-native';
33
import hoistNonReactStatics from 'hoist-non-react-statics';
44
import GestureHandlerRootView from './GestureHandlerRootView';
55

6-
export default function gestureHandlerRootHOC<
7-
P extends Record<string, unknown>
8-
>(
6+
export default function gestureHandlerRootHOC<P extends object>(
97
Component: React.ComponentType<P>,
108
containerStyles?: StyleProp<ViewStyle>
119
): React.ComponentType<P> {

0 commit comments

Comments
 (0)