react-navigation-helpers
Version:
Easy to use React Navigation with these helpers for React Navigation on React Native
21 lines (19 loc) • 587 B
JavaScript
import React, { Component } from "react";
import { Text, View, TouchableOpacity } from "react-native";
import * as NavigationService from "../lib/src/NavigationService";
import styles from "./styles/styles";
export default class HomeScreen extends Component {
render() {
return (
<View style={styles.container}>
<Text>HomeScreen</Text>
<TouchableOpacity
style={styles.buttonStyle}
onPress={() => NavigationService.pop()}
>
<Text style={styles.textStyle}>Pop</Text>
</TouchableOpacity>
</View>
);
}
}