From e6f1320b1dc47129f6b13432bd6ab79dfba52cb9 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Mon, 20 Mar 2023 17:07:52 +0500 Subject: [PATCH] mobile: optimize sheets --- apps/mobile/app/components/attachments/index.js | 3 +++ .../app/components/sheets/topic-sheet/index.tsx | 2 +- apps/mobile/app/package.json | 2 +- apps/mobile/package-lock.json | 16 ++++++++-------- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/apps/mobile/app/components/attachments/index.js b/apps/mobile/app/components/attachments/index.js index a640f19d9..bea7ff242 100644 --- a/apps/mobile/app/components/attachments/index.js +++ b/apps/mobile/app/components/attachments/index.js @@ -116,6 +116,9 @@ export const AttachmentDialog = ({ data }) => { { backgroundColor: colors.nav }} keyboardHandlerEnabled={false} - snapPoints={Config.isTesting === "true" ? [60, 100] : [15, 60, 100]} + snapPoints={Config.isTesting === "true" ? [100] : [15, 100]} initialSnapIndex={0} backgroundInteractionEnabled onChange={(position, height) => { diff --git a/apps/mobile/app/package.json b/apps/mobile/app/package.json index 57c390923..ce528b6a4 100644 --- a/apps/mobile/app/package.json +++ b/apps/mobile/app/package.json @@ -15,7 +15,7 @@ "html-to-text": "8.1.0", "phone": "^3.1.14", "qclone": "^1.2.0", - "react-native-actions-sheet": "^0.9.0-alpha.11", + "react-native-actions-sheet": "^0.9.0-alpha.12", "react-native-check-version": "https://github.com/flexible-agency/react-native-check-version", "react-native-drax": "^0.10.2", "react-native-image-zoom-viewer": "^3.0.1", diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.json index 0b577b9ae..d8b8a9ac9 100644 --- a/apps/mobile/package-lock.json +++ b/apps/mobile/package-lock.json @@ -42,7 +42,7 @@ "qclone": "^1.2.0", "react": "18.0.0", "react-native": "0.69.7", - "react-native-actions-sheet": "^0.9.0-alpha.11", + "react-native-actions-sheet": "^0.9.0-alpha.12", "react-native-check-version": "https://github.com/flexible-agency/react-native-check-version", "react-native-drax": "^0.10.2", "react-native-image-zoom-viewer": "^3.0.1", @@ -17957,9 +17957,9 @@ } }, "node_modules/react-native-actions-sheet": { - "version": "0.9.0-alpha.11", - "resolved": "https://registry.npmjs.org/react-native-actions-sheet/-/react-native-actions-sheet-0.9.0-alpha.11.tgz", - "integrity": "sha512-bYOQVpB3lHcBh+wYa+6IEXfQC3xrlDJh+yhdIhVMjSRybvgcHGSIali8cPrGuwRF7luF0fqZIS+xsEDQs5eahA==", + "version": "0.9.0-alpha.12", + "resolved": "https://registry.npmjs.org/react-native-actions-sheet/-/react-native-actions-sheet-0.9.0-alpha.12.tgz", + "integrity": "sha512-VyXsfOFkKCBWB6jn+IlKUTo0KWhItkRC8f6RMvx/RYc5WRhj4Ka5O7/BZVDs86ELJkUT08D7ufzWPjmOQ8hUKw==", "peerDependencies": { "react-native": "*", "react-native-gesture-handler": "*" @@ -24312,7 +24312,7 @@ "qclone": "^1.2.0", "react": "18.0.0", "react-native": "0.69.7", - "react-native-actions-sheet": "^0.9.0-alpha.11", + "react-native-actions-sheet": "^0.9.0-alpha.12", "react-native-check-version": "https://github.com/flexible-agency/react-native-check-version", "react-native-drax": "^0.10.2", "react-native-image-zoom-viewer": "^3.0.1", @@ -34856,9 +34856,9 @@ } }, "react-native-actions-sheet": { - "version": "0.9.0-alpha.11", - "resolved": "https://registry.npmjs.org/react-native-actions-sheet/-/react-native-actions-sheet-0.9.0-alpha.11.tgz", - "integrity": "sha512-bYOQVpB3lHcBh+wYa+6IEXfQC3xrlDJh+yhdIhVMjSRybvgcHGSIali8cPrGuwRF7luF0fqZIS+xsEDQs5eahA==" + "version": "0.9.0-alpha.12", + "resolved": "https://registry.npmjs.org/react-native-actions-sheet/-/react-native-actions-sheet-0.9.0-alpha.12.tgz", + "integrity": "sha512-VyXsfOFkKCBWB6jn+IlKUTo0KWhItkRC8f6RMvx/RYc5WRhj4Ka5O7/BZVDs86ELJkUT08D7ufzWPjmOQ8hUKw==" }, "react-native-actions-shortcuts": { "version": "1.0.1",