Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- import {
- StyleSheet,
- Text,
- View,
- TouchableOpacity,
- } from 'react-native';
- import { NavigationActions } from 'react-native';
- export default class NewPage extends Component {
- render() {
- return (
- <View>
- <TouchableOpacity style={{ width: "90%", height: "100%" }}
- //here is the problem, I want to navigate to screen defined in the App.js NavigationApp (First: {screen: FirstScreen})
- onPress={() => this.props.navigation.navigate('First') />
- </View>
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement