Skip to content

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

do not ask user to login on app welcome screen

ammarahm-edd8e6e76a8ef2
diff --git a/apps/mobile/src/components/SplashScreen/index.js b/apps/mobile/src/components/SplashScreen/index.js
index 8527d1ed6..92a11943b 100644
--- a/apps/mobile/src/components/SplashScreen/index.js
+++ b/apps/mobile/src/components/SplashScreen/index.js
@@ -23,7 +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';
+import {openLinkInBrowser} from '../../utils/functions';
const features = [
{
@@ -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"
- />
- )}
+ <View />
<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>