keyboard avoidiing fix
This commit is contained in:
@@ -11,6 +11,8 @@ import { listCategories } from "@/api/categories";
|
||||
import { FormControl, FormControlLabel } from "@/components/ui/form-control";
|
||||
import { Input, InputField } from "@/components/ui/input";
|
||||
import { HStack } from "@/components/ui/hstack";
|
||||
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
|
||||
import { KeyboardAvoidingView, Platform } from "react-native";
|
||||
import {
|
||||
Actionsheet,
|
||||
ActionsheetContent,
|
||||
@@ -32,6 +34,7 @@ import {
|
||||
SelectDragIndicatorWrapper,
|
||||
SelectItem,
|
||||
} from "@/components/ui/select";
|
||||
import { ScrollView } from "react-native-gesture-handler";
|
||||
|
||||
export default function Notices() {
|
||||
// Hooks
|
||||
@@ -224,11 +227,16 @@ export default function Notices() {
|
||||
</Box>
|
||||
<Actionsheet isOpen={showActionsheet} onClose={handleClose}>
|
||||
<ActionsheetBackdrop />
|
||||
<ActionsheetContent>
|
||||
<ActionsheetContent style={{ maxHeight: SCREEN_HEIGHT * 0.6, width: '100%' }} >
|
||||
<KeyboardAwareScrollView
|
||||
contentContainerStyle={{ flexGrow: 1, width: '100%' }}
|
||||
enableOnAndroid={true}
|
||||
extraScrollHeight={40}
|
||||
>
|
||||
<ActionsheetDragIndicatorWrapper>
|
||||
<ActionsheetDragIndicator />
|
||||
</ActionsheetDragIndicatorWrapper>
|
||||
<Box className="mb-4">
|
||||
<Box className="mb-4" style={{ width: "100%" }}>
|
||||
<HStack space="md" style={{ width: "100%" }}>
|
||||
<FormControl
|
||||
style={{ flex: 1 }}>
|
||||
@@ -254,9 +262,9 @@ export default function Notices() {
|
||||
</FormControl>
|
||||
</HStack>
|
||||
</Box>
|
||||
<Box className="mb-4 w-full">
|
||||
<Box className="mb-4 w-full" style={{ flex: 1 }}>
|
||||
<Select
|
||||
style={{ width: '100%' }}
|
||||
style={{ width: '100%', flex: 1 }}
|
||||
selectedValue={params.category || ''}
|
||||
onValueChange={handleCategorySelect}
|
||||
>
|
||||
@@ -290,7 +298,7 @@ export default function Notices() {
|
||||
</SelectPortal>
|
||||
</Select>
|
||||
</Box>
|
||||
|
||||
</KeyboardAwareScrollView>
|
||||
</ActionsheetContent>
|
||||
</Actionsheet>
|
||||
<Actionsheet isOpen={showSortSheet} onClose={() => setShowSortSheet(false)}>
|
||||
|
||||
40
ArtisanConnect/package-lock.json
generated
40
ArtisanConnect/package-lock.json
generated
@@ -47,6 +47,7 @@
|
||||
"react-native": "0.79.2",
|
||||
"react-native-css-interop": "^0.1.22",
|
||||
"react-native-gesture-handler": "~2.24.0",
|
||||
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
||||
"react-native-reanimated": "~3.17.4",
|
||||
"react-native-safe-area-context": "5.4.0",
|
||||
"react-native-screens": "~4.10.0",
|
||||
@@ -8861,6 +8862,23 @@
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/prop-types": {
|
||||
"version": "15.8.1",
|
||||
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
|
||||
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"loose-envify": "^1.4.0",
|
||||
"object-assign": "^4.1.1",
|
||||
"react-is": "^16.13.1"
|
||||
}
|
||||
},
|
||||
"node_modules/prop-types/node_modules/react-is": {
|
||||
"version": "16.13.1",
|
||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
|
||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/proxy-from-env": {
|
||||
"version": "1.1.0",
|
||||
"license": "MIT"
|
||||
@@ -9131,6 +9149,15 @@
|
||||
"react-native": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/react-native-iphone-x-helper": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.3.1.tgz",
|
||||
"integrity": "sha512-HOf0jzRnq2/aFUcdCJ9w9JGzN3gdEg0zFE4FyYlp4jtidqU03D5X7ZegGKfT1EWteR0gPBGp9ye5T5FvSWi9Yg==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"react-native": ">=0.42.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-native-is-edge-to-edge": {
|
||||
"version": "1.1.7",
|
||||
"license": "MIT",
|
||||
@@ -9139,6 +9166,19 @@
|
||||
"react-native": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/react-native-keyboard-aware-scroll-view": {
|
||||
"version": "0.9.5",
|
||||
"resolved": "https://registry.npmjs.org/react-native-keyboard-aware-scroll-view/-/react-native-keyboard-aware-scroll-view-0.9.5.tgz",
|
||||
"integrity": "sha512-XwfRn+T/qBH9WjTWIBiJD2hPWg0yJvtaEw6RtPCa5/PYHabzBaWxYBOl0usXN/368BL1XktnZPh8C2lmTpOREA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"prop-types": "^15.6.2",
|
||||
"react-native-iphone-x-helper": "^1.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react-native": ">=0.48.4"
|
||||
}
|
||||
},
|
||||
"node_modules/react-native-reanimated": {
|
||||
"version": "3.17.5",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
"react-native": "0.79.2",
|
||||
"react-native-css-interop": "^0.1.22",
|
||||
"react-native-gesture-handler": "~2.24.0",
|
||||
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
||||
"react-native-reanimated": "~3.17.4",
|
||||
"react-native-safe-area-context": "5.4.0",
|
||||
"react-native-screens": "~4.10.0",
|
||||
|
||||
Reference in New Issue
Block a user