Fix modular header back button to default to showing Back and respect visibility prop

This commit is contained in:
Brent Vatne
2018-10-12 12:39:44 -07:00
parent 6398566325
commit 395e53af73
3 changed files with 62 additions and 35 deletions

View File

@@ -3,6 +3,10 @@ import { Button, View, Text } from 'react-native';
import { createStackNavigator } from 'react-navigation-stack';
class ListScreen extends React.Component {
static navigationOptions = {
title: 'List',
};
render() {
return (
<View
@@ -29,6 +33,10 @@ class ListScreen extends React.Component {
}
class DetailsScreen extends React.Component {
static navigationOptions = {
title: 'Details',
};
render() {
return (
<View
@@ -72,5 +80,6 @@ export default createStackNavigator(
// these are the defaults
cardShadowEnabled: true,
cardOverlayEnabled: false,
// headerTransitionPreset: 'uikit',
}
);