do not ask user to login on app welcome screen

This commit is contained in:
ammarahm-ed
2021-03-12 09:52:04 +05:00
parent 737871f7fe
commit d8e6e76a8e

View File

@@ -217,8 +217,7 @@ const SplashScreen = () => {
try {
openLinkInBrowser(item.link, colors);
} catch (e) {
console.log(e,"ERROR")
console.log(e, 'ERROR');
}
}}
/>
@@ -238,25 +237,12 @@ const SplashScreen = () => {
position: 'absolute',
bottom: 25,
}}>
{isNext ? (
<View />
) : (
<Button
fontSize={SIZE.md}
onPress={async () => {
await Storage.write('introCompleted', 'true');
await hide();
}}
height={50}
type="grayBg"
style={{paddingHorizontal: 24}}
title="Skip"
/>
)}
<Button
fontSize={SIZE.md}
height={50}
width={isNext ? null : '100%'}
onPress={async () => {
if (isNext) {
carouselRef.current?.snapToNext();
@@ -267,12 +253,11 @@ const SplashScreen = () => {
} else {
await hide();
await Storage.write('introCompleted', 'true');
eSendEvent(eOpenLoginDialog, 1);
}
}}
style={{paddingHorizontal: 24}}
type="accent"
title={isNext ? 'Next' : 'Sign up'}
title={isNext ? 'Next' : 'Start taking notes'}
/>
</View>
</Animated.View>