fix: scrollview shouldn't scroll when no results

This commit is contained in:
Adrian Castro
2024-02-16 11:04:50 +01:00
parent c811800afb
commit a991882484

View File

@@ -99,6 +99,7 @@ export default function SearchScreen() {
<ScrollView
onScrollBeginDrag={handleScrollBegin}
onMomentumScrollEnd={handleScrollEnd}
scrollEnabled={searchResults.length > 0}
keyboardDismissMode="on-drag"
keyboardShouldPersistTaps="handled"
>