Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: browser not opening on splashscreen

ammarahm-ed866dcf14f1b3
diff --git a/apps/mobile/src/components/SplashScreen/index.js b/apps/mobile/src/components/SplashScreen/index.js
index 52215cd93..aa90dffce 100644
--- a/apps/mobile/src/components/SplashScreen/index.js
+++ b/apps/mobile/src/components/SplashScreen/index.js
@@ -23,6 +23,7 @@ import Paragraph from '../Typography/Paragraph';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {DDS} from '../../services/DeviceDetection';
+import { openLinkInBrowser } from '../../utils/functions';
const features = [
{
@@ -74,8 +75,9 @@ const SplashScreen = () => {
useEffect(() => {
Storage.read('introCompleted').then(async (r) => {
+
requestAnimationFrame(() => {
- if (!r) {
+ if (r) {
setVisible(true);
timing(opacity, {
toValue: 1,
@@ -215,7 +217,10 @@ const SplashScreen = () => {
onPress={() => {
try {
openLinkInBrowser(item.link, colors);
- } catch (e) {}
+ } catch (e) {
+
+ console.log(e,"ERROR")
+ }
}}
/>
)}