diff --git a/mobile/.vscode/launch.json b/mobile/.vscode/launch.json new file mode 100644 index 0000000000000000000000000000000000000000..1ea2450850744a7fc1529f617053571f2a61c51f --- /dev/null +++ b/mobile/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense para saber los atributos posibles. + // Mantenga el puntero para ver las descripciones de los existentes atributos. + // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to packager", + "request": "attach", + "type": "reactnative", + "cwd": "${workspaceFolder}" + }, + { + "name": "Debug Android", + "request": "launch", + "type": "reactnative", + "cwd": "${workspaceFolder}", + "platform": "android" + } + ] +} diff --git a/mobile/App.js b/mobile/App.js index 922835a8f8d8517c27ecef5dcb4fba9ef807ebc1..7524f0c67f5470474344c00287d54cd1d860f146 100644 --- a/mobile/App.js +++ b/mobile/App.js @@ -13,6 +13,8 @@ class App extends React.Component { //with navigation, then in the classes we'll use the navigate //method to move from one page to another render() { + let x = 1; + console.log("App executed"); return ( <NavigationContainer> <Stack.Navigator> diff --git a/mobile/Screens/secondScreen.js b/mobile/Screens/secondScreen.js new file mode 100644 index 0000000000000000000000000000000000000000..acaad0c23ec6e8c3021a14c5b7eb379fb0cf37b1 --- /dev/null +++ b/mobile/Screens/secondScreen.js @@ -0,0 +1,31 @@ +import React from 'react'; +import { StyleSheet, Text, View, Button } from 'react-native'; + +class SecondScreen extends React.Component { + render() { + return ( + <View style={styles.container}> + <Text>Second page!</Text> + + <Button + title="Go to Home" + onPress={() => + this.props.navigation.navigate('Home') + } + /> + </View> + ); + } +} + +// ... +const styles = StyleSheet.create({ + container: { + flex: 1, + backgroundColor: '#fff', + alignItems: 'center', + justifyContent: 'center', + }, + }); + +export default SecondScreen; \ No newline at end of file