Skip to content
Snippets Groups Projects
Commit ea58ff3b authored by ric's avatar ric
Browse files

updating home

parents 8bbf9460 c637a04a
No related branches found
No related tags found
No related merge requests found
{
// 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"
}
]
}
...@@ -13,6 +13,8 @@ class App extends React.Component { ...@@ -13,6 +13,8 @@ class App extends React.Component {
//with navigation, then in the classes we'll use the navigate //with navigation, then in the classes we'll use the navigate
//method to move from one page to another //method to move from one page to another
render() { render() {
let x = 1;
console.log("App executed");
return ( return (
<NavigationContainer> <NavigationContainer>
<Stack.Navigator> <Stack.Navigator>
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment