Advertisement
Guest User

Untitled

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