From 235e3f7bc95bbdb488bfcdd4557b697e45415cb8 Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Mon, 15 Aug 2022 23:16:44 -0600 Subject: [PATCH 1/6] fix css mobile issues --- mobile-ui/components/LogIn.js | 48 ++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/mobile-ui/components/LogIn.js b/mobile-ui/components/LogIn.js index c5b5e76d..a5e0d12c 100644 --- a/mobile-ui/components/LogIn.js +++ b/mobile-ui/components/LogIn.js @@ -2,7 +2,6 @@ import React from "react"; import { Text, Link, - View, Center, Heading, VStack, @@ -10,12 +9,40 @@ import { FormControl, Input, Button, - Image, - TextInput + Image } from "native-base"; import logo from "../assets/logo-katoikia.png"; import { Entypo } from '@expo/vector-icons'; import { MaterialCommunityIcons } from '@expo/vector-icons'; +import { View, TextInput, StyleSheet } from "react-native"; + +const styles = StyleSheet.create({ + input: { + height: 40, + margin: 10, + borderWidth: 0.5, + padding: 5, + flex: 1, + paddingTop: 10, + paddingRight: 10, + paddingBottom: 10, + paddingLeft: 0, + marginTop: 50, + marginBottom: 10 + }, + + iconStyle: { + padding: 10, + }, + + viewSection: { + flex: 1, + flexDirection: 'row', + justifyContent: 'center', + alignItems: 'center', + marginTop: 5 + } +}) export default function LogIn({navigation}) { return ( @@ -54,17 +81,17 @@ export default function LogIn({navigation}) { Correo Electrónico - - - + + + Contraseña - - - + + + ); + + + } \ No newline at end of file From dcb77ae10eec9e3e23036ce38efbae9fcc534c0b Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Tue, 16 Aug 2022 14:27:34 -0600 Subject: [PATCH 2/6] home nav --- mobile-ui/App.js | 2 +- mobile-ui/components/Home.js | 69 ++++++++++++++++++++++++----------- mobile-ui/components/LogIn.js | 15 ++++++-- 3 files changed, 59 insertions(+), 27 deletions(-) diff --git a/mobile-ui/App.js b/mobile-ui/App.js index 9f43ccee..8c45b000 100644 --- a/mobile-ui/App.js +++ b/mobile-ui/App.js @@ -18,7 +18,7 @@ export default function App() { - + diff --git a/mobile-ui/components/Home.js b/mobile-ui/components/Home.js index 6f35a009..f344f44c 100644 --- a/mobile-ui/components/Home.js +++ b/mobile-ui/components/Home.js @@ -1,35 +1,60 @@ -import React from "react"; +import React from 'react'; import { Text, HStack, - IconButton, Box, - StatusBar, Icon, MaterialIcons, - Center + Center, + Pressable } from "native-base"; -export default function Home(){ +import { MaterialCommunityIcons } from '@expo/vector-icons'; + +export default function Home({navigation}){ + + const [selected, setSelected] = React.useState(1); return ( -
- - - - - } /> - - Home - + + +
+ + setSelected(0)}> +
+ } color="white" size="sm" /> + + Inicio + +
+
+ setSelected(1)}> +
+ } color="white" size="sm" /> + + Comunicados + +
+
+ setSelected(2)}> +
+ } color="white" size="sm" /> + + Reservas + +
+
+ setSelected(3)}> +
+ } color="white" size="sm" /> + + Perfil + +
+
- - } /> - } /> - } /> - -
-
+ + - ) + ); } \ No newline at end of file diff --git a/mobile-ui/components/LogIn.js b/mobile-ui/components/LogIn.js index a5e0d12c..fd63d793 100644 --- a/mobile-ui/components/LogIn.js +++ b/mobile-ui/components/LogIn.js @@ -9,7 +9,8 @@ import { FormControl, Input, Button, - Image + Image, + Container } from "native-base"; import logo from "../assets/logo-katoikia.png"; import { Entypo } from '@expo/vector-icons'; @@ -40,7 +41,11 @@ const styles = StyleSheet.create({ flexDirection: 'row', justifyContent: 'center', alignItems: 'center', - marginTop: 5 + margin: 10 + }, + + container: { + } }) @@ -77,7 +82,8 @@ export default function LogIn({navigation}) { Su app de comunidad de confianza - + + Correo Electrónico @@ -114,7 +120,8 @@ export default function LogIn({navigation}) { Continuar - +
+ ); From 50995a06e39470b9af6c559bdb27f2b31a23894c Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Wed, 17 Aug 2022 10:36:33 -0600 Subject: [PATCH 3/6] reservas screen --- mobile-ui/App.js | 30 ++++++- mobile-ui/components/Home.js | 143 ++++++++++++++++++----------- mobile-ui/components/LogIn.js | 6 +- mobile-ui/components/Profile.js | 15 ++++ mobile-ui/components/Reservas.js | 148 +++++++++++++++++++++++++++++++ mobile-ui/package-lock.json | 28 ++++++ mobile-ui/package.json | 1 + 7 files changed, 314 insertions(+), 57 deletions(-) create mode 100644 mobile-ui/components/Reservas.js diff --git a/mobile-ui/App.js b/mobile-ui/App.js index 8c45b000..61dbd821 100644 --- a/mobile-ui/App.js +++ b/mobile-ui/App.js @@ -4,24 +4,48 @@ import { } from "native-base"; import { NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; +import { createBottomTabNavigator} from '@react-navigation/bottom-tabs'; import LogIn from "./components/LogIn"; import Home from "./components/Home"; import RecoverPassword from "./components/RecoverPassword"; +import Reservas from "./components/Reservas"; +import Profile from "./components/Profile"; const Stack = createNativeStackNavigator(); +const Tab = createBottomTabNavigator(); + +function HomeTab() { + + return ( + + + + + + ) +} export default function App() { return ( - - + + + + - ); } \ No newline at end of file diff --git a/mobile-ui/components/Home.js b/mobile-ui/components/Home.js index f344f44c..d8806dc9 100644 --- a/mobile-ui/components/Home.js +++ b/mobile-ui/components/Home.js @@ -1,60 +1,103 @@ -import React from 'react'; +import React from "react"; import { Text, HStack, + Badge, Box, - Icon, - MaterialIcons, - Center, - Pressable +Pressable, + Spacer, + Flex, + Center } from "native-base"; + import { MaterialCommunityIcons } from '@expo/vector-icons'; +export default function Home(){ -import { MaterialCommunityIcons } from '@expo/vector-icons'; - -export default function Home({navigation}){ - - const [selected, setSelected] = React.useState(1); - + const [selected, setSelected] = React.useState(0); return ( + + + console.log("I'm Pressed")} rounded="8" overflow="hidden" borderWidth="1" borderColor="coolGray.300" maxW="96" shadow="3" bg="coolGray.100" p="5" marginTop="4"> + + + + Comunicado + + + + 1 month ago + + + + Administrador de Comunidad + + + Notificacion sobre la aplicacion + + + + + console.log("I'm Pressed")} rounded="8" overflow="hidden" borderWidth="1" borderColor="coolGray.300" maxW="96" shadow="3" bg="coolGray.100" p="5" marginTop="4"> + + + + Comunicado + + + + 1 month ago + + + + Administrador General + + + Notificacion sobre la aplicacion + + + + + + //
+ + // + // + + // setSelected(0) && navigation.navigate('Home')}> + //
+ // } color="white" size="md" /> + // + // Inicio + // + //
+ //
+ + + // setSelected(1) && ( () => navigation.navigate('Reservas'))}> + //
+ // } color="white" size="md" /> + // + // Reservas + // + //
+ //
- -
- - setSelected(0)}> -
- } color="white" size="sm" /> - - Inicio - -
-
- setSelected(1)}> -
- } color="white" size="sm" /> - - Comunicados - -
-
- setSelected(2)}> -
- } color="white" size="sm" /> - - Reservas - -
-
- setSelected(3)}> -
- } color="white" size="sm" /> - - Perfil - -
-
-
-
- - ); + // setSelected(2)}> + //
+ // } color="white" size="md" /> + // + // Perfil + // + //
+ //
+ + + //
+ //
+ + ) } \ No newline at end of file diff --git a/mobile-ui/components/LogIn.js b/mobile-ui/components/LogIn.js index fd63d793..63e5ba83 100644 --- a/mobile-ui/components/LogIn.js +++ b/mobile-ui/components/LogIn.js @@ -7,10 +7,8 @@ import { VStack, Box, FormControl, - Input, Button, - Image, - Container + Image } from "native-base"; import logo from "../assets/logo-katoikia.png"; import { Entypo } from '@expo/vector-icons'; @@ -115,7 +113,7 @@ export default function LogIn({navigation}) {
- diff --git a/mobile-ui/components/Profile.js b/mobile-ui/components/Profile.js index e69de29b..5c75931c 100644 --- a/mobile-ui/components/Profile.js +++ b/mobile-ui/components/Profile.js @@ -0,0 +1,15 @@ +import React from "react"; + +import { + Box + } from "native-base"; + +export default function Profile(){ + + return ( + + + + + ) +} \ No newline at end of file diff --git a/mobile-ui/components/Reservas.js b/mobile-ui/components/Reservas.js new file mode 100644 index 00000000..08af073f --- /dev/null +++ b/mobile-ui/components/Reservas.js @@ -0,0 +1,148 @@ +import React from "react"; +import { + Text, + HStack, + AntDesign, + Heading, + Stack, + Box, + ScrollView, + Fab, + Icon +} from "native-base"; +import logo from "../assets/logo-katoikia.png"; +import { Entypo } from '@expo/vector-icons'; +import { MaterialCommunityIcons } from '@expo/vector-icons'; +import { View, TextInput, StyleSheet } from "react-native"; + +const styles = StyleSheet.create({ + input: { + height: 40, + margin: 10, + borderWidth: 0.5, + padding: 5, + flex: 1, + paddingTop: 10, + paddingRight: 10, + paddingBottom: 10, + paddingLeft: 0, + marginTop: 50, + marginBottom: 10 + }, + + iconStyle: { + padding: 10, + }, + + viewSection: { + flex: 1, + flexDirection: 'row', + justifyContent: 'center', + alignItems: 'center', + margin: 10 + }, + + container: { + + } +}) + +export default function Reservas({navigation}) { + return ( + + + + + + + + + + + Reserva #1 + + + horario de Reserva + + + + Descripcion + + + + + 6 mins ago + + + + + + + + + + + + + + Reserva #1 + + + horario de Reserva + + + + Descripcion + + + + + 6 mins ago + + + + + + + + + } /> + + + ); + + + +} \ No newline at end of file diff --git a/mobile-ui/package-lock.json b/mobile-ui/package-lock.json index 860e1166..45d893cb 100644 --- a/mobile-ui/package-lock.json +++ b/mobile-ui/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@react-native-community/masked-view": "^0.1.11", + "@react-navigation/bottom-tabs": "^6.3.2", "@react-navigation/native": "^6.0.11", "@react-navigation/native-stack": "^6.7.0", "@react-navigation/stack": "^6.2.2", @@ -3533,6 +3534,23 @@ "resolved": "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-1.0.0.tgz", "integrity": "sha512-0jbp4RxjYopTsIdLl+/Fy2TiwVYHy4mgeu07DG4b/LyM0OS/+lPP5c9sbnt/AMlnF6qz2JRZpPpGw1eMNS6A4w==" }, + "node_modules/@react-navigation/bottom-tabs": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/@react-navigation/bottom-tabs/-/bottom-tabs-6.3.2.tgz", + "integrity": "sha512-uS0XV2aH7bAW54Zuf5ks2V60riarbMALyMz3cB3204l4aGhx41UPUIr/K72pGAVdIPizpjz8Fk8qwczAwex9eg==", + "dependencies": { + "@react-navigation/elements": "^1.3.4", + "color": "^4.2.3", + "warn-once": "^0.1.0" + }, + "peerDependencies": { + "@react-navigation/native": "^6.0.0", + "react": "*", + "react-native": "*", + "react-native-safe-area-context": ">= 3.0.0", + "react-native-screens": ">= 3.0.0" + } + }, "node_modules/@react-navigation/core": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/@react-navigation/core/-/core-6.2.2.tgz", @@ -13852,6 +13870,16 @@ "resolved": "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-1.0.0.tgz", "integrity": "sha512-0jbp4RxjYopTsIdLl+/Fy2TiwVYHy4mgeu07DG4b/LyM0OS/+lPP5c9sbnt/AMlnF6qz2JRZpPpGw1eMNS6A4w==" }, + "@react-navigation/bottom-tabs": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/@react-navigation/bottom-tabs/-/bottom-tabs-6.3.2.tgz", + "integrity": "sha512-uS0XV2aH7bAW54Zuf5ks2V60riarbMALyMz3cB3204l4aGhx41UPUIr/K72pGAVdIPizpjz8Fk8qwczAwex9eg==", + "requires": { + "@react-navigation/elements": "^1.3.4", + "color": "^4.2.3", + "warn-once": "^0.1.0" + } + }, "@react-navigation/core": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/@react-navigation/core/-/core-6.2.2.tgz", diff --git a/mobile-ui/package.json b/mobile-ui/package.json index 7b717cc6..43ee388e 100644 --- a/mobile-ui/package.json +++ b/mobile-ui/package.json @@ -18,6 +18,7 @@ }, "dependencies": { "@react-native-community/masked-view": "^0.1.11", + "@react-navigation/bottom-tabs": "^6.3.2", "@react-navigation/native": "^6.0.11", "@react-navigation/native-stack": "^6.7.0", "@react-navigation/stack": "^6.2.2", From 7416803b1ab94bd8316bafaa462996edb7d3b10d Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Wed, 17 Aug 2022 15:08:38 -0600 Subject: [PATCH 4/6] css fixes --- mobile-ui/App.js | 15 ++++++---- mobile-ui/components/LogIn.js | 2 +- mobile-ui/components/Profile.js | 52 +++++++++++++++++++++++++++++---- 3 files changed, 58 insertions(+), 11 deletions(-) diff --git a/mobile-ui/App.js b/mobile-ui/App.js index 61dbd821..bb44f0fe 100644 --- a/mobile-ui/App.js +++ b/mobile-ui/App.js @@ -1,6 +1,7 @@ -import React from "react"; +import React,{useState} from "react"; import { - NativeBaseProvider + NativeBaseProvider, + Icon } from "native-base"; import { NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; @@ -10,24 +11,28 @@ import Home from "./components/Home"; import RecoverPassword from "./components/RecoverPassword"; import Reservas from "./components/Reservas"; import Profile from "./components/Profile"; +import { MaterialCommunityIcons } from '@expo/vector-icons'; const Stack = createNativeStackNavigator(); const Tab = createBottomTabNavigator(); + function HomeTab() { +const [selected, setSelected] = useState(0); + return ( + }, tabBarIcon: () => (} color="#D7A86E" size="md" />)}} onclick={() => setSelected(0)} /> + }, tabBarIcon: () => (} color="#D7A86E" size="md" />)} } onclick={() => setSelected(1)} /> + }, tabBarIcon: () => (} color="#D7A86E" size="md" />)}} onclick={() => setSelected(2)} /> ) } diff --git a/mobile-ui/components/LogIn.js b/mobile-ui/components/LogIn.js index 63e5ba83..77b203bb 100644 --- a/mobile-ui/components/LogIn.js +++ b/mobile-ui/components/LogIn.js @@ -113,7 +113,7 @@ export default function LogIn({navigation}) { - diff --git a/mobile-ui/components/Profile.js b/mobile-ui/components/Profile.js index 5c75931c..3bdbcddc 100644 --- a/mobile-ui/components/Profile.js +++ b/mobile-ui/components/Profile.js @@ -1,15 +1,57 @@ import React from "react"; import { - Box + Box, + Heading, + VStack, + FormControl, + Input, + Button, + Center } from "native-base"; export default function Profile(){ return ( - - - - +
+ + + Welcome + + + Sign up to continue! + + + + Nombre + + + + Correo Electrónico + + + + Teléfono + + + + Contraseña actual + + + + + + + +
+ ) } \ No newline at end of file From 37e764de60057e6f67611a12d5fd7d7ab28ec912 Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Wed, 17 Aug 2022 16:47:48 -0600 Subject: [PATCH 5/6] reservar screen movil --- mobile-ui/App.js | 2 ++ mobile-ui/components/AreaComun.js | 53 +++++++++++++++++++++++++++++++ mobile-ui/components/Home.js | 2 -- mobile-ui/components/Profile.js | 14 ++++---- mobile-ui/components/Reservas.js | 4 +-- 5 files changed, 64 insertions(+), 11 deletions(-) create mode 100644 mobile-ui/components/AreaComun.js diff --git a/mobile-ui/App.js b/mobile-ui/App.js index bb44f0fe..8d44c4c4 100644 --- a/mobile-ui/App.js +++ b/mobile-ui/App.js @@ -12,6 +12,7 @@ import RecoverPassword from "./components/RecoverPassword"; import Reservas from "./components/Reservas"; import Profile from "./components/Profile"; import { MaterialCommunityIcons } from '@expo/vector-icons'; +import AreaComun from "./components/AreaComun"; const Stack = createNativeStackNavigator(); const Tab = createBottomTabNavigator(); @@ -47,6 +48,7 @@ export default function App() { }}} /> + diff --git a/mobile-ui/components/AreaComun.js b/mobile-ui/components/AreaComun.js new file mode 100644 index 00000000..ddd29bd2 --- /dev/null +++ b/mobile-ui/components/AreaComun.js @@ -0,0 +1,53 @@ +import React from "react"; + +import { + Box, + Heading, + VStack, + FormControl, + Input, + Button, + Center + } from "native-base"; + +export default function AreaComun({navigation}){ + + return ( +
+ + + Katoikia + + + Reserve su área común + + + + Hora de inicio + + + + Hora de finalización + + + + Lugar + + + + + + + +
+ + ) +} \ No newline at end of file diff --git a/mobile-ui/components/Home.js b/mobile-ui/components/Home.js index d8806dc9..ab60fb52 100644 --- a/mobile-ui/components/Home.js +++ b/mobile-ui/components/Home.js @@ -6,8 +6,6 @@ import { Box, Pressable, Spacer, - Flex, - Center } from "native-base"; import { MaterialCommunityIcons } from '@expo/vector-icons'; export default function Home(){ diff --git a/mobile-ui/components/Profile.js b/mobile-ui/components/Profile.js index 3bdbcddc..79e4b9b5 100644 --- a/mobile-ui/components/Profile.js +++ b/mobile-ui/components/Profile.js @@ -10,7 +10,7 @@ import { Center } from "native-base"; -export default function Profile(){ +export default function Profile({navigation}){ return (
@@ -18,25 +18,25 @@ export default function Profile(){ - Welcome + Katoikia - Sign up to continue! + Modifique sus datos Nombre - + Correo Electrónico - + Teléfono - + Contraseña actual @@ -46,7 +46,7 @@ export default function Profile(){ - diff --git a/mobile-ui/components/Reservas.js b/mobile-ui/components/Reservas.js index 08af073f..dd5b8532 100644 --- a/mobile-ui/components/Reservas.js +++ b/mobile-ui/components/Reservas.js @@ -133,12 +133,12 @@ export default function Reservas({navigation}) { - - } /> + } color="white" size="sm" />} onPress={() => navigation.navigate('area')}/> ); From 77b0755a8e23f5325d391bebeccc327ee03044a9 Mon Sep 17 00:00:00 2001 From: Maria Sanchez Date: Thu, 18 Aug 2022 16:02:50 -0600 Subject: [PATCH 6/6] mobile log in --- mobile-ui/App.js | 4 ++- mobile-ui/components/LogIn.js | 50 +++++++++++++++++++++++++++++++++-- mobile-ui/package-lock.json | 44 +++++++++++++++++++++++++++++- mobile-ui/package.json | 3 ++- 4 files changed, 96 insertions(+), 5 deletions(-) diff --git a/mobile-ui/App.js b/mobile-ui/App.js index 8d44c4c4..fd210975 100644 --- a/mobile-ui/App.js +++ b/mobile-ui/App.js @@ -48,7 +48,9 @@ export default function App() { }}} /> - + diff --git a/mobile-ui/components/LogIn.js b/mobile-ui/components/LogIn.js index 77b203bb..eeb75cb9 100644 --- a/mobile-ui/components/LogIn.js +++ b/mobile-ui/components/LogIn.js @@ -1,4 +1,5 @@ import React from "react"; +import Cookies from 'universal-cookie'; import { Text, Link, @@ -15,6 +16,9 @@ import { Entypo } from '@expo/vector-icons'; import { MaterialCommunityIcons } from '@expo/vector-icons'; import { View, TextInput, StyleSheet } from "react-native"; +const baseURL = "http://localhost:4000/user/loginUser"; +const cookies = new Cookies(); + const styles = StyleSheet.create({ input: { height: 40, @@ -47,17 +51,58 @@ const styles = StyleSheet.create({ } }) +const iniciarSesion = async() => { + + try { + + await fetch(baseURL, { + cache: 'no-cache', + method: 'POST', + body: JSON.stringify(), + headers: { + 'Content-Type': 'application/json' + } + }) + .then(response => { + if (response.status != 201){ + console.log('ocurrio un error '); + }else{ + return response.json(); + } + }) + .then( response => { + const user = response.message + + if(user.user_type == '3'){ + cookies.set('id',user._id, {path: "/"} ) + cookies.set('name',user.name, {path: "/"} ) + cookies.set('email',user.email, {path: "/"} ) + cookies.set('type',user.user_type, {path: "/"} ) + } + }) + + } catch (error) { + + } + + +} + export default function LogIn({navigation}) { return (
- + Katoikia logo +
+ = 0.6" + } + }, "node_modules/copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", @@ -10824,6 +10838,15 @@ "node": ">=0.10.0" } }, + "node_modules/universal-cookie": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/universal-cookie/-/universal-cookie-4.0.4.tgz", + "integrity": "sha512-lbRVHoOMtItjWbM7TwDLdl8wug7izB0tq3/YVKhT/ahB4VDvWMyvnADfnJI8y6fSvsjh51Ix7lTGC6Tn4rMPhw==", + "dependencies": { + "@types/cookie": "^0.3.3", + "cookie": "^0.4.0" + } + }, "node_modules/universalify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", @@ -14293,6 +14316,11 @@ "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" }, + "@types/cookie": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.3.3.tgz", + "integrity": "sha512-LKVP3cgXBT9RYj+t+9FDKwS5tdI+rPBXaNSkma7hvqy35lc7mAokC2zsqWJH0LaqIt3B962nuYI77hsJoT1gow==" + }, "@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -15173,6 +15201,11 @@ "safe-buffer": "~5.1.1" } }, + "cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==" + }, "copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", @@ -19605,6 +19638,15 @@ } } }, + "universal-cookie": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/universal-cookie/-/universal-cookie-4.0.4.tgz", + "integrity": "sha512-lbRVHoOMtItjWbM7TwDLdl8wug7izB0tq3/YVKhT/ahB4VDvWMyvnADfnJI8y6fSvsjh51Ix7lTGC6Tn4rMPhw==", + "requires": { + "@types/cookie": "^0.3.3", + "cookie": "^0.4.0" + } + }, "universalify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", diff --git a/mobile-ui/package.json b/mobile-ui/package.json index 43ee388e..9fa4b879 100644 --- a/mobile-ui/package.json +++ b/mobile-ui/package.json @@ -33,7 +33,8 @@ "react-native-safe-area-context": "3.3.2", "react-native-screens": "~3.10.1", "react-native-svg": "12.1.1", - "react-native-web": "0.17.1" + "react-native-web": "0.17.1", + "universal-cookie": "^4.0.4" }, "devDependencies": { "@babel/core": "^7.12.9"