Remove themed background from welcome screen

This commit is contained in:
Lei Nelissen
2022-05-17 23:04:04 +02:00
parent 0589325055
commit 479f701d32
2 changed files with 11 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -1,6 +1,5 @@
import React, { useCallback, useEffect } from 'react'; import React, { useCallback, useEffect } from 'react';
import styled from 'styled-components/native'; import styled from 'styled-components/native';
import { THEME_COLOR } from 'CONSTANTS';
import { useNavigation } from '@react-navigation/native'; import { useNavigation } from '@react-navigation/native';
import { NavigationProp } from 'screens'; import { NavigationProp } from 'screens';
import { useTypedSelector } from 'store'; import { useTypedSelector } from 'store';
@@ -8,9 +7,10 @@ import { useDispatch } from 'react-redux';
import { setOnboardingStatus } from 'store/settings/actions'; import { setOnboardingStatus } from 'store/settings/actions';
import { t } from '@localisation'; import { t } from '@localisation';
import Button from 'components/Button'; import Button from 'components/Button';
import { Header, Text as BaseText } from 'components/Typography';
import { ShadowWrapper } from 'components/Shadow';
const Container = styled.SafeAreaView` const Container = styled.SafeAreaView`
background-color: ${THEME_COLOR};
flex: 1; flex: 1;
justify-content: center; justify-content: center;
`; `;
@@ -19,10 +19,9 @@ const TextContainer = styled.ScrollView`
padding: 25px; padding: 25px;
`; `;
const Text = styled.Text` const Text = styled(BaseText)`
text-align: center; text-align: center;
color: white; margin-bottom: 16px;
margin-bottom: 10px;
`; `;
const ButtonContainer = styled.View` const ButtonContainer = styled.View`
@@ -33,6 +32,8 @@ const Logo = styled.Image`
width: 150px; width: 150px;
height: 150px; height: 150px;
margin: 0 auto 50px auto; margin: 0 auto 50px auto;
border-radius: 12px;
border: 1px solid #e6e6e6;
`; `;
function Onboarding() { function Onboarding() {
@@ -56,10 +57,12 @@ function Onboarding() {
return ( return (
<Container> <Container>
<TextContainer contentContainerStyle={{ flexGrow: 1, justifyContent: 'center' }}> <TextContainer contentContainerStyle={{ flexGrow: 1, justifyContent: 'center' }}>
<Logo source={require('../../assets/icons/app-icon-white.png')} /> <ShadowWrapper size="medium">
<Text > <Logo source={require('../../assets/icons/app-icon.png')} />
</ShadowWrapper>
<Header style={{ textAlign: 'center', marginBottom: 24 }}>
{t('onboarding-welcome')} {t('onboarding-welcome')}
</Text> </Header>
<Text> <Text>
{t('onboarding-intro')} {t('onboarding-intro')}
</Text> </Text>