Skip to content

Commit

Permalink
Improved keyboard avoiding in input.js (#327)
Browse files Browse the repository at this point in the history
* changed dialog component to new inputs

* keyboard avoiding in input is now a lot smoother
  • Loading branch information
FrankreedX committed Aug 20, 2024
1 parent 5054ac2 commit d65f72c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/segments/drill/[id]/submission/input.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { KeyboardAvoiderScrollView } from "@good-react-native/keyboard-avoider";
import {
BottomSheetModalProvider,
BottomSheetScrollView,
Expand All @@ -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";
Expand Down Expand Up @@ -927,7 +927,7 @@ export default function Input({ setToggleResult, setOutputData }) {
}
/>

<KeyboardAwareScrollView>
<KeyboardAvoiderScrollView>
{/* Shot Number / Total shots */}
<View style={styles.shotNumContainer}>
<Text style={styles.shotNumber}>
Expand Down Expand Up @@ -1021,7 +1021,7 @@ export default function Input({ setToggleResult, setOutputData }) {
<DrillDescription drillInfo={drillInfo} />
</BottomSheetView>
</BottomSheetWrapper>
</KeyboardAwareScrollView>
</KeyboardAvoiderScrollView>
{/* Navigation */}
<View style={styles.navigationContainer}>
<Text
Expand Down

0 comments on commit d65f72c

Please sign in to comment.