fix: adjust bar height over keyboard

This commit is contained in:
Adrian Castro
2024-04-07 21:46:05 +02:00
parent a5ab7f4767
commit 8b7bf5da6d

View File

@@ -46,7 +46,7 @@ export default function SearchScreen() {
"keyboardWillShow", "keyboardWillShow",
(e) => { (e) => {
translateY.value = withTiming( translateY.value = withTiming(
-(e.endCoordinates.height - 110), // determines the height of the Searchbar above keyboard, use Platform.select to adjust value if needed -(e.endCoordinates.height - 100), // determines the height of the Searchbar above keyboard, use Platform.select to adjust value if needed
{ {
duration: e.duration ?? 250, // duration always returns 0 on Android, adjust value if needed duration: e.duration ?? 250, // duration always returns 0 on Android, adjust value if needed
easing: Easing.out(Easing.ease), easing: Easing.out(Easing.ease),