mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
do not ask user to login on app welcome screen
This commit is contained in:
@@ -23,7 +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';
|
import {openLinkInBrowser} from '../../utils/functions';
|
||||||
|
|
||||||
const features = [
|
const features = [
|
||||||
{
|
{
|
||||||
@@ -217,8 +217,7 @@ const SplashScreen = () => {
|
|||||||
try {
|
try {
|
||||||
openLinkInBrowser(item.link, colors);
|
openLinkInBrowser(item.link, colors);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.log(e, 'ERROR');
|
||||||
console.log(e,"ERROR")
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@@ -238,25 +237,12 @@ const SplashScreen = () => {
|
|||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
bottom: 25,
|
bottom: 25,
|
||||||
}}>
|
}}>
|
||||||
{isNext ? (
|
<View />
|
||||||
<View />
|
|
||||||
) : (
|
|
||||||
<Button
|
|
||||||
fontSize={SIZE.md}
|
|
||||||
onPress={async () => {
|
|
||||||
await Storage.write('introCompleted', 'true');
|
|
||||||
await hide();
|
|
||||||
}}
|
|
||||||
height={50}
|
|
||||||
type="grayBg"
|
|
||||||
style={{paddingHorizontal: 24}}
|
|
||||||
title="Skip"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
fontSize={SIZE.md}
|
fontSize={SIZE.md}
|
||||||
height={50}
|
height={50}
|
||||||
|
width={isNext ? null : '100%'}
|
||||||
onPress={async () => {
|
onPress={async () => {
|
||||||
if (isNext) {
|
if (isNext) {
|
||||||
carouselRef.current?.snapToNext();
|
carouselRef.current?.snapToNext();
|
||||||
@@ -267,12 +253,11 @@ const SplashScreen = () => {
|
|||||||
} else {
|
} else {
|
||||||
await hide();
|
await hide();
|
||||||
await Storage.write('introCompleted', 'true');
|
await Storage.write('introCompleted', 'true');
|
||||||
eSendEvent(eOpenLoginDialog, 1);
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
style={{paddingHorizontal: 24}}
|
style={{paddingHorizontal: 24}}
|
||||||
type="accent"
|
type="accent"
|
||||||
title={isNext ? 'Next' : 'Sign up'}
|
title={isNext ? 'Next' : 'Start taking notes'}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
|
|||||||
Reference in New Issue
Block a user