From ee11516976a6147f9434dfd542136e1a18fbf680 Mon Sep 17 00:00:00 2001 From: phelipe Date: Tue, 22 Mar 2022 07:59:27 -0400 Subject: [PATCH] model_react_native --- .DS_Store | Bin 0 -> 6148 bytes App.js | 4 +- app.json | 2 +- src/navigations/AppNavigation.js | 6 ++- .../DrawerContainer/DrawerContainer.js | 8 ++++ src/screens/SignIn/SignIn.js | 24 +++++++++++ src/screens/SignIn/styles.js | 38 ++++++++++++++++++ yarn.lock | 11 +++-- 8 files changed, 86 insertions(+), 7 deletions(-) create mode 100644 .DS_Store create mode 100644 src/screens/SignIn/SignIn.js create mode 100644 src/screens/SignIn/styles.js diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 + ); } diff --git a/app.json b/app.json index ac028554..71ead35c 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "expo": { "name": "Instafood", "slug": "instafood-recipes-app", - "description": "React Native Recipes App Demo. Download source code for free at https://www.instamobile.io . You can also check out the Swift version at https://www.iosapptemplates.com and the Kotlin version at https://www.instakotlin.com .", + "description": "", "privacy": "public", "platforms": [ "ios", diff --git a/src/navigations/AppNavigation.js b/src/navigations/AppNavigation.js index 089b71b6..e947640b 100644 --- a/src/navigations/AppNavigation.js +++ b/src/navigations/AppNavigation.js @@ -10,6 +10,8 @@ import DrawerContainer from '../screens/DrawerContainer/DrawerContainer'; import IngredientScreen from '../screens/Ingredient/IngredientScreen'; import SearchScreen from '../screens/Search/SearchScreen'; import IngredientsDetailsScreen from '../screens/IngredientsDetails/IngredientsDetailsScreen'; +import SingIn from '../screens/SignIn/SignIn'; + const Stack = createStackNavigator(); @@ -25,6 +27,9 @@ function MainNavigator() { } }} > + + + @@ -66,4 +71,3 @@ function DrawerStack() { } -console.disableYellowBox = true; \ No newline at end of file diff --git a/src/screens/DrawerContainer/DrawerContainer.js b/src/screens/DrawerContainer/DrawerContainer.js index d183b6ce..a3d634b1 100644 --- a/src/screens/DrawerContainer/DrawerContainer.js +++ b/src/screens/DrawerContainer/DrawerContainer.js @@ -33,6 +33,14 @@ export default function DrawerContainer(props) { navigation.closeDrawer(); }} /> + { + navigation.navigate("SingIn"); + navigation.closeDrawer(); + }} + /> ); diff --git a/src/screens/SignIn/SignIn.js b/src/screens/SignIn/SignIn.js new file mode 100644 index 00000000..47a24ac1 --- /dev/null +++ b/src/screens/SignIn/SignIn.js @@ -0,0 +1,24 @@ +import React, { useLayoutEffect } from "react"; +import { Text, View,TouchableOpacity, TextInput } from "react-native"; +import style from './styles' + + +export default function SingIn({ navigation }) { + + return ( + + + + + { + navigation.navigate("Home"); + }} + > + Press Here + + + + ); +} diff --git a/src/screens/SignIn/styles.js b/src/screens/SignIn/styles.js new file mode 100644 index 00000000..c148e860 --- /dev/null +++ b/src/screens/SignIn/styles.js @@ -0,0 +1,38 @@ +import { StyleSheet } from 'react-native'; + +const styles = StyleSheet.create({ + container: { + width: '100%', + height: '100%', + flex: 1, + justifyContent: 'center', + marginHorizontal: 9, + }, + input: { + height: 40, + margin: 12, + borderWidth: 2, + borderColor: 'red', + margin: 10, + marginLeft: 35, + width: '80%', + borderRadius: 20, + height: 50, + }, + btn: { + width: '100%', + marginVertical: 10, + paddingVertical: 2, + }, + textbtn: { + fontWeight: 'bold', + fontSize: 15, + lineHeight: 26, + }, + fixToText: { + flexDirection: 'row', + justifyContent: 'space-between', + }, +}); + +export default styles; diff --git a/yarn.lock b/yarn.lock index 20237366..0f98c2d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2147,9 +2147,14 @@ camelcase@^5.0.0, camelcase@^5.3.1: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== caniuse-lite@^1.0.30001181: - version "1.0.30001202" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001202.tgz#4cb3bd5e8a808e8cd89e4e66c549989bc8137201" - integrity sha512-ZcijQNqrcF8JNLjzvEiXqX4JUYxoZa7Pvcsd9UD8Kz4TvhTonOSNRsK+qtvpVL4l6+T1Rh4LFtLfnNWg6BGWCQ== + version "1.0.30001319" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001319.tgz" + integrity sha512-xjlIAFHucBRSMUo1kb5D4LYgcN1M45qdKP++lhqowDpwJwGkpIRTt5qQqnhxjj1vHcI7nrJxWhCC1ATrCEBTcw== + +caniuse-lite@^1.0.30001319: + version "1.0.30001319" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001319.tgz#eb4da4eb3ecdd409f7ba1907820061d56096e88f" + integrity sha512-xjlIAFHucBRSMUo1kb5D4LYgcN1M45qdKP++lhqowDpwJwGkpIRTt5qQqnhxjj1vHcI7nrJxWhCC1ATrCEBTcw== capture-exit@^2.0.0: version "2.0.0"