Skip to content

Commit

Permalink
fix: types for gestureHandlerRootHOC (#2712)
Browse files Browse the repository at this point in the history
## Description

fix gestureHandlerRootHOC type error props declared as an interface


Fixes #2711

## Test plan

Check type gestureHandlerRootHOC

---------

Co-authored-by: Michał Bert <[email protected]>
  • Loading branch information
fxamauri and m-bert authored Jan 5, 2024
1 parent 94c462b commit b4eba25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/gestureHandlerRootHOC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>
>(
export default function gestureHandlerRootHOC<P extends object>(
Component: React.ComponentType<P>,
containerStyles?: StyleProp<ViewStyle>
): React.ComponentType<P> {
Expand Down

0 comments on commit b4eba25

Please sign in to comment.