Advertisement
Guest User

NewPage

a guest
May 17th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import {
  3. StyleSheet,
  4. Text,
  5. View,
  6. TouchableOpacity,
  7.  
  8. } from 'react-native';
  9.  
  10. import { NavigationActions } from 'react-native';
  11.  
  12. export default class NewPage extends Component {
  13. render() {
  14. return (
  15.  
  16. <View>
  17. <TouchableOpacity style={{ width: "90%", height: "100%" }}
  18. //here is the problem, I want to navigate to screen defined in the App.js NavigationApp (First: {screen: FirstScreen})
  19. onPress={() => this.props.navigation.navigate('First') />
  20. </View>
  21.  
  22. );
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement