A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix multi file sharing
Ammar Ahmedbee06ecf18b0
diff --git a/apps/mobile/native/android/app/src/main/AndroidManifest.xml b/apps/mobile/native/android/app/src/main/AndroidManifest.xmlindex 0fdeaece0..791fa0098 100644--- a/apps/mobile/native/android/app/src/main/AndroidManifest.xml+++ b/apps/mobile/native/android/app/src/main/AndroidManifest.xml@@ -129,6 +129,16 @@<data android:mimeType="application/*" /></intent-filter>+ <intent-filter android:label="Make Note">+ <action android:name="android.intent.action.SEND_MULTIPLE" />+ <category android:name="android.intent.category.DEFAULT" />+ <data android:mimeType="text/*" />+ <data android:mimeType="image/*" />+ <data android:mimeType="video/*" />+ <data android:mimeType="image/*" />+ <data android:mimeType="application/*" />+ </intent-filter>+<intent-filter android:label="Make Note"><action android:name="android.intent.action.PROCESS_TEXT" /><category android:name="android.intent.category.DEFAULT" />diff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.jsindex 59690b4cf..b8b6f5d3b 100644--- a/apps/mobile/share/share.js+++ b/apps/mobile/share/share.js@@ -43,7 +43,7 @@ import { SafeAreaProvider } from "react-native-safe-area-context";import Icon from "react-native-vector-icons/MaterialCommunityIcons";import isURL from "validator/lib/isURL";import { DatabaseLogger, db } from "../app/common/database";-import Storage from "../app/common/database/storage";+import { Storage } from "../app/common/database/storage";import { Button } from "../app/components/ui/button";import Heading from "../app/components/ui/typography/heading";import Paragraph from "../app/components/ui/typography/paragraph";@@ -620,41 +620,45 @@ const ShareView = () => {>Tap to remove an attachment.</Paragraph>- <TouchableOpacity- activeOpacity={1}- style={{- flexDirection: "row",- alignSelf: "center",- alignItems: "center",- width: "100%",- marginTop: 6- }}- onPress={() => {- setCompress(!compress);- }}- >- <Icon- size={20}- name={- compress- ? "checkbox-marked"- : "checkbox-blank-outline"- }- color={- compress ? colors.primary.accent : colors.primary.icon- }- />-- <Text+ {rawFiles.some((item) => isImage(item.type)) ? (+ <TouchableOpacity+ activeOpacity={1}style={{- flexShrink: 1,- marginLeft: 3,- fontSize: 12+ flexDirection: "row",+ alignSelf: "center",+ alignItems: "center",+ width: "100%",+ marginTop: 6+ }}+ onPress={() => {+ setCompress(!compress);}}>- Compress image (recommended)- </Text>- </TouchableOpacity>+ <Icon+ size={20}+ name={+ compress+ ? "checkbox-marked"+ : "checkbox-blank-outline"+ }+ color={+ compress+ ? colors.primary.accent+ : colors.primary.icon+ }+ />++ <Text+ style={{+ flexShrink: 1,+ marginLeft: 3,+ fontSize: 12+ }}+ >+ Compress image(s) (recommended)+ </Text>+ </TouchableOpacity>+ ) : null}</View>) : null}<View