Skip to content

Commit 1b98084

Browse files
authored
Merge pull request #4 from iway1/bugfix/typescript-issues
fix issues with KeyboardAvoiderView prop types
2 parents b9887ab + b9b82a3 commit 1b98084

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
"react-native-uuid": "^2.0.1"
3434
},
3535
"dependencies": {
36-
"@types/react-native": "^0.69.5",
3736
"react-native-uuid": "^2.0.1"
37+
},
38+
"devDependencies": {
39+
"@types/react-native": "^0.69.5"
3840
}
3941
}

package/src/components/KeyboardAvoiderView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import React, {
77
import {
88
KeyboardEventListener,
99
Platform,
10+
ViewProps,
1011
} from 'react-native'
1112
import Animated, {
1213
useAnimatedStyle,
@@ -26,7 +27,7 @@ export default function KeyboardAvoiderView({
2627
enableAndroid = true,
2728
avoidMode = 'whole-view',
2829
...props
29-
}: ComponentProps<typeof Animated.View> & CommonProps & {
30+
}: Animated.AnimateProps<ViewProps> & CommonProps & {
3031
/**
3132
* Enable on android. Defaults to true to ensure consistent behavior.
3233
*/

0 commit comments

Comments
 (0)