From d52b47a2c19df40d9659d285f1a2d2f59d2d1267 Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Fri, 5 Aug 2022 23:16:04 -0600 Subject: [PATCH] mobile home component --- .expo/README.md | 15 ++++++++ .expo/settings.json | 8 +++++ mobile-ui/App.js | 34 +++++------------- .../{Logo_Katoikia.png => logo-katoikia.png} | Bin mobile-ui/components/Home.js | 28 +++++++++++++++ 5 files changed, 59 insertions(+), 26 deletions(-) create mode 100644 .expo/README.md create mode 100644 .expo/settings.json rename mobile-ui/assets/{Logo_Katoikia.png => logo-katoikia.png} (100%) create mode 100644 mobile-ui/components/Home.js diff --git a/.expo/README.md b/.expo/README.md new file mode 100644 index 00000000..fd146b4d --- /dev/null +++ b/.expo/README.md @@ -0,0 +1,15 @@ +> Why do I have a folder named ".expo" in my project? + +The ".expo" folder is created when an Expo project is started using "expo start" command. + +> What do the files contain? + +- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds. +- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator. +- "settings.json": contains the server configuration that is used to serve the application manifest. + +> Should I commit the ".expo" folder? + +No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine. + +Upon project creation, the ".expo" folder is already added to your ".gitignore" file. diff --git a/.expo/settings.json b/.expo/settings.json new file mode 100644 index 00000000..92bc513b --- /dev/null +++ b/.expo/settings.json @@ -0,0 +1,8 @@ +{ + "hostType": "lan", + "lanType": "ip", + "dev": true, + "minify": false, + "urlRandomness": null, + "https": false +} diff --git a/mobile-ui/App.js b/mobile-ui/App.js index 0b181475..169933a1 100644 --- a/mobile-ui/App.js +++ b/mobile-ui/App.js @@ -18,6 +18,7 @@ import { } from "native-base"; import NativeBaseIcon from "./components/NativeBaseIcon"; import { Platform } from "react-native"; +import logo from "./assets/logo-katoikia.png" // Define the config const config = { @@ -31,17 +32,18 @@ colors: { brown: "#D7A86E" } }); -//const logo = require('./assets/') +// const logo = require('./assets/logo-katoikia.png') + export default function App() { return (
- {/* Katoikia logo */} + Katoikia logo Continuar - - {/* - I'm a new user. - */} - - Regístrese aquí - - +
diff --git a/mobile-ui/assets/Logo_Katoikia.png b/mobile-ui/assets/logo-katoikia.png similarity index 100% rename from mobile-ui/assets/Logo_Katoikia.png rename to mobile-ui/assets/logo-katoikia.png diff --git a/mobile-ui/components/Home.js b/mobile-ui/components/Home.js new file mode 100644 index 00000000..cce81831 --- /dev/null +++ b/mobile-ui/components/Home.js @@ -0,0 +1,28 @@ +import React from "react"; +import { + Text, + Link, + HStack, + Center, + Heading, + Switch, + useColorMode, + NativeBaseProvider, + extendTheme, + VStack, + Box, + FormControl, + Input, + Button, + Image + } from "native-base"; + +export default function Home(){ + + return ( + + + + + ) +} \ No newline at end of file