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