Skip to content

Commit 64ba931

Browse files
authored
Fix fillInDefaultValues warning (#4004)
## Description `fillInDefaultValues` is meant to be used only on `JS` side. However, it was not included in [`PropsToFilter`](https://github.com/software-mansion/react-native-gesture-handler/blob/9a72a5cc9762a0d3a3736b6e47ef359f81db82f1/packages/react-native-gesture-handler/src/v3/hooks/utils/propsWhiteList.ts#L68), so the following warning could be observed: ``` WARN [react-native-gesture-handler] fillInDefaultValues is not a valid property for PanGestureHandler and will be ignored. ``` This PR fixes this problem. ## Test plan Check that warning is no longer present in console (any example with either `Pan`, `Hover`, `Pinch` or `Rotation`)
1 parent 9a72a5c commit 64ba931

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native-gesture-handler/src/v3/hooks/utils/propsWhiteList.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export const PropsToFilter = new Set<
7272
...ExternalRelationsConfig,
7373

7474
// Config props
75+
'fillInDefaultValues',
7576
'changeEventCalculator',
7677
'disableReanimated',
7778
'shouldUseReanimatedDetector',

0 commit comments

Comments
 (0)