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 share extension not launching on ios
ammarahm-ed5ba065c8f108
diff --git a/apps/mobile/app/app.js b/apps/mobile/app/app.jsindex 4a1f1c472..0068824e8 100644--- a/apps/mobile/app/app.js+++ b/apps/mobile/app/app.js@@ -16,7 +16,7 @@ GNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>.*/-+import "react-native-gesture-handler";import React, { useEffect } from "react";import { GestureHandlerRootView } from "react-native-gesture-handler";import { SafeAreaProvider } from "react-native-safe-area-context";@@ -33,7 +33,7 @@ import { View } from "react-native";import { useState } from "react";import NetInfo from "@react-native-community/netinfo";//import { BackgroundSync } from "./services/background-sync";-+Notifications.init();NetInfo.configure({reachabilityUrl: "https://notesnook.com",reachabilityTest: (response) => {diff --git a/apps/mobile/native/globals.js b/apps/mobile/native/globals.jsindex b02359546..426f088f2 100644--- a/apps/mobile/native/globals.js+++ b/apps/mobile/native/globals.js@@ -1,60 +1,6 @@/* eslint-disable @typescript-eslint/no-var-requires */global.Buffer = require('buffer').Buffer;-//import { ScriptManager, Script } from '@callstack/repack/client';import '../app/common/logger/index';import { DOMParser } from './worker.js';--// class DOM {-// static domparser;--// parseFromString(markupLanguage, mimeType, globals) {-// return DOM.domparser?.parseFromString(markupLanguage, mimeType, globals);-// }--// static async prepare() {-// if (!DOM.domparser) {-// let module = await import('./worker.js');-// DOM.domparser = new module.DOMParser();-// }-// }-// }global.DOMParser = DOMParser;-// try {-// const shared = ScriptManager.shared;-// } catch (e) {-// new ScriptManager({-// resolve: async (scriptId, caller) => {-// if (__DEV__) {-// return {-// url: Script.getDevServerURL(scriptId),-// cache: false-// };-// }--// return {-// url: Script.getFileSystemURL(scriptId)-// };-// }-// });-// }-if (__DEV__) {- // ScriptManager.shared.on('resolving', (...args) => {- // console.log('DEBUG/resolving', ...args);- // });- // ScriptManager.shared.on('resolved', (...args) => {- // console.log('DEBUG/resolved', ...args);- // });- // ScriptManager.shared.on('prefetching', (...args) => {- // console.log('DEBUG/prefetching', ...args);- // });- // ScriptManager.shared.on('loading', (...args) => {- // console.log('DEBUG/loading', ...args);- // });- // ScriptManager.shared.on('loaded', (...args) => {- // console.log('DEBUG/loaded', ...args);- // });- // ScriptManager.shared.on('error', (...args) => {- // console.log('DEBUG/error', ...args);- // });-}diff --git a/apps/mobile/native/index.js b/apps/mobile/native/index.jsindex 69dfbef7c..3728f9124 100644--- a/apps/mobile/native/index.js+++ b/apps/mobile/native/index.js@@ -1,13 +1,11 @@/* eslint-disable @typescript-eslint/no-var-requires */import './globals.js';import 'react-native-get-random-values';-import 'react-native-gesture-handler';import React from 'react';import { AppRegistry, LogBox, Platform, UIManager } from 'react-native';import Config from 'react-native-config';import { SafeAreaProvider } from 'react-native-safe-area-context';import appJson from './app.json';-import Notifications from '../app/services/notifications';//import {BackgroundSync} from '../app/services/background-sync';const appName = appJson.name;@@ -22,7 +20,7 @@ if (__DEV__) {LogBox.ignoreAllLogs();}let NotesnookShare;-Notifications.init();+//BackgroundSync.registerHeadlessTask();let QuickNoteIOS;