Added apollo client and basic provider setup.
This commit is contained in:
32
components/screen-splash/screen-splash.component.jsx
Normal file
32
components/screen-splash/screen-splash.component.jsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import React from "react";
|
||||
import { StyleSheet, Image } from "react-native";
|
||||
import Logo from "../../assets/logo240.png";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { H1, Container, Content } from "native-base";
|
||||
import styles from "../styles";
|
||||
|
||||
export default function ScreenSplash() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<Container>
|
||||
<Content
|
||||
contentContainerStyle={[
|
||||
styles.contentContainer__centered,
|
||||
localStyles.middleAlign,
|
||||
]}
|
||||
>
|
||||
<Image style={localStyles.logo} source={Logo} />
|
||||
<H1>{t("app.title")}</H1>
|
||||
</Content>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
const localStyles = StyleSheet.create({
|
||||
middleAlign: {
|
||||
alignItems: "center",
|
||||
},
|
||||
content: {
|
||||
paddingBottom: 150,
|
||||
},
|
||||
logo: { width: 100, height: 100, margin: 20 },
|
||||
});
|
||||
Reference in New Issue
Block a user