From d65f72cca56b51076edc4cb13a50fb15c8e9291d Mon Sep 17 00:00:00 2001 From: Frank Nguyen <41023671+FrankreedX@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:43:10 +0700 Subject: [PATCH] Improved keyboard avoiding in input.js (#327) * changed dialog component to new inputs * keyboard avoiding in input is now a lot smoother --- app/segments/drill/[id]/submission/input.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/segments/drill/[id]/submission/input.js b/app/segments/drill/[id]/submission/input.js index 8cce89ad..57cae818 100644 --- a/app/segments/drill/[id]/submission/input.js +++ b/app/segments/drill/[id]/submission/input.js @@ -1,3 +1,4 @@ +import { KeyboardAvoiderScrollView } from "@good-react-native/keyboard-avoider"; import { BottomSheetModalProvider, BottomSheetScrollView, @@ -16,7 +17,6 @@ import { } from "firebase/firestore"; import { useCallback, useEffect, useRef, useState } from "react"; import { Platform, StyleSheet, View, useWindowDimensions } from "react-native"; -import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; import { Appbar, Button, Divider, Text } from "react-native-paper"; import { SafeAreaView } from "react-native-safe-area-context"; import { once } from "underscore"; @@ -927,7 +927,7 @@ export default function Input({ setToggleResult, setOutputData }) { } /> - + {/* Shot Number / Total shots */} @@ -1021,7 +1021,7 @@ export default function Input({ setToggleResult, setOutputData }) { - + {/* Navigation */}