Implemented new splash-screen image atlast

This commit is contained in:
anil_majji
2023-02-28 18:33:08 +05:30
committed by Sri Kanth Kola
parent f8b65bd958
commit 961a84ca09
7 changed files with 3 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resources>
<color name="splashscreen_background">#ffffff</color>
<color name="splashscreen_background">#F59B4B</color>
<color name="iconBackground">#FFFFFF</color>
<color name="colorPrimary">#023c69</color>
<color name="colorPrimaryDark">#ffffff</color>

View File

@@ -4,6 +4,6 @@
<string name="app_name_mosip">MOSIP Resident App - Mosip/Inji</string>
<string name="app_name_newlogic">MOSIP Resident App - Newlogic</string>
<string name="app_name_ph">MOSIP Resident App - PH</string>
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
<string name="expo_splash_screen_resize_mode" translatable="false">cover</string>
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
</resources>

View File

@@ -6,7 +6,7 @@ export default {
icon: './assets/icon.png',
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
resizeMode: 'cover',
backgroundColor: '#ffffff',
},
updates: {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -91,12 +91,6 @@ export const DefaultTheme = {
TimoutText: Colors.TimoutText,
},
Styles: StyleSheet.create({
splashScreen: {
height: '100%',
width: '100%',
alignItems: 'center',
paddingTop: '63%',
},
title: {
color: Colors.Black,
backgroundColor: Colors.Transparent,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -1,23 +0,0 @@
import React from 'react';
import { Theme } from '../components/ui/styleUtils';
import { RootRouteProps } from '../routes';
import { Image } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { Column } from '../components/ui';
import { useWelcomeScreen } from './WelcomeScreenController';
export const SplashLogoScreen: React.FC<RootRouteProps> = (props) => {
const controller = useWelcomeScreen(props);
return (
<Column>
<LinearGradient
colors={Theme.Colors.GradientColors}
useAngle={true}
angle={180}
style={Theme.Styles.splashScreen}>
<Image source={Theme.InjiLogoWhite} height={100} width={100} />
</LinearGradient>
</Column>
);
};