Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import { View, Text, TouchableOpacity } from 'react-native';
  3.  
  4. class Home extends Component {
  5. constructor(props) {
  6. super(props);
  7. this.state = {
  8. };
  9. }
  10.  
  11. _goToPrincipal = () => {
  12. this.props.navigation.navigate("Principal");
  13. }
  14. render() {
  15. return (
  16. <View>
  17. <TouchableOpacity onPress={this._goToPrincipal}>
  18. <Text>Ir para Principal</Text>
  19. </TouchableOpacity>
  20. </View>
  21. );
  22. }
  23. }
  24.  
  25. export default Home;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement