We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da787bb commit 36ac622Copy full SHA for 36ac622
src/index.tsx
@@ -123,7 +123,7 @@ export const AutocompleteDropdown = memo<
123
return new Promise<void>(resolve => {
124
setTimeout(
125
() => {
126
- const kbHeight = Keyboard.metrics()?.height || 0
+ const kbHeight = Keyboard.metrics?.()?.height || 0
127
const screenHeight = Dimensions.get('window').height
128
setDirection((screenHeight - kbHeight) / 2 > positionY ? 'down' : 'up')
129
resolve()
0 commit comments