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 { 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>