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
fix error
ammarahm-edf4f21e16c1b3
diff --git a/apps/mobile/share/index.js b/apps/mobile/share/index.jsindex 7c3480126..eb7736fba 100644--- a/apps/mobile/share/index.js+++ b/apps/mobile/share/index.js@@ -16,11 +16,7 @@ import {useWindowDimensions,View} from 'react-native';-import Animated, {- Easing,- timing,- useValue-} from 'react-native-reanimated';+import Animated, {Easing, timing, useValue} from 'react-native-reanimated';import {useSafeAreaInsets} from 'react-native-safe-area-context';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import WebView from 'react-native-webview';@@ -255,8 +251,8 @@ const NotesnookShare = ({quicknote = false}) => {setTimeout(() => {webviewRef.current?.injectJavaScript(`document.querySelector('.htmldiff_div')- .setAttribute('contenteditable', 'true');`)- },300)+ .setAttribute('contenteditable', 'true');`);+ }, 300);let theme = {...colors};theme.factor = 1;postMessage(webviewRef, 'theme', JSON.stringify(theme));@@ -357,7 +353,7 @@ const NotesnookShare = ({quicknote = false}) => {return {...note};});} else {- let html = validator.isURL(rawData.value)+ let html = validator.isURL(rawData.value)? makeHtmlFromUrl(rawData.value): makeHtmlFromPlainText(rawData.value);setNote(note => {@@ -565,7 +561,7 @@ const NotesnookShare = ({quicknote = false}) => {style={{width: '100%'}}>- {!quicknote && (+ {!quicknote ? (<Buttoncolor={colors.accent}onPress={onPress}@@ -583,7 +579,7 @@ const NotesnookShare = ({quicknote = false}) => {bottom: -35}}/>- )}+ ) : null}<Viewstyle={{@@ -665,7 +661,7 @@ const NotesnookShare = ({quicknote = false}) => {paddingRight: 80,alignItems: 'center'}}>- {rawData.value && validator.isURL(rawData.value) && (+ {rawData.value && validator.isURL(rawData.value) ? (<Buttoncolor={mode == 2 ? colors.shade : colors.nav}icon={modes[2].icon}@@ -677,7 +673,7 @@ const NotesnookShare = ({quicknote = false}) => {type="rounded"style={{paddingHorizontal: 12}}/>- )}+ ) : null}<Buttoncolor={mode == 1 ? colors.shade : colors.nav}icon={modes[1].icon}