mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix: browser not opening on splashscreen
This commit is contained in:
@@ -23,6 +23,7 @@ import Paragraph from '../Typography/Paragraph';
|
|||||||
|
|
||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||||
import {DDS} from '../../services/DeviceDetection';
|
import {DDS} from '../../services/DeviceDetection';
|
||||||
|
import { openLinkInBrowser } from '../../utils/functions';
|
||||||
|
|
||||||
const features = [
|
const features = [
|
||||||
{
|
{
|
||||||
@@ -74,8 +75,9 @@ const SplashScreen = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Storage.read('introCompleted').then(async (r) => {
|
Storage.read('introCompleted').then(async (r) => {
|
||||||
|
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
if (!r) {
|
if (r) {
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
timing(opacity, {
|
timing(opacity, {
|
||||||
toValue: 1,
|
toValue: 1,
|
||||||
@@ -215,7 +217,10 @@ const SplashScreen = () => {
|
|||||||
onPress={() => {
|
onPress={() => {
|
||||||
try {
|
try {
|
||||||
openLinkInBrowser(item.link, colors);
|
openLinkInBrowser(item.link, colors);
|
||||||
} catch (e) {}
|
} catch (e) {
|
||||||
|
|
||||||
|
console.log(e,"ERROR")
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user