Skip to content

Commit 36ac622

Browse files
committed
fix: fix #154
1 parent da787bb commit 36ac622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const AutocompleteDropdown = memo<
123123
return new Promise<void>(resolve => {
124124
setTimeout(
125125
() => {
126-
const kbHeight = Keyboard.metrics()?.height || 0
126+
const kbHeight = Keyboard.metrics?.()?.height || 0
127127
const screenHeight = Dimensions.get('window').height
128128
setDirection((screenHeight - kbHeight) / 2 > positionY ? 'down' : 'up')
129129
resolve()

0 commit comments

Comments
 (0)