/**
* @flow
*/
import React from 'react';
import {
Button,
ScrollView,
StyleSheet,
} from 'react-native';
import {
StackNavigator,
} from 'react-navigation';
import SampleText from './SampleText';
const MyNavScreen = ({ navigation, banner }) => (
{banner}
);
const MyHomeScreen = ({ navigation }) => (
);
MyHomeScreen.navigationOptions = {
title: 'Welcome',
};
const MyProfileScreen = ({ navigation }) => (
);
MyProfileScreen.navigationOptions = {
title: ({ state }) => `${state.params.name}'s Profile!`,
};
const MyHeaderTestScreen = ({ navigation }) => (
);
MyHeaderTestScreen.navigationOptions = {
header: ({state}) => ({
visible: !!state.params && state.params.header === 'visible',
title: 'Now you see me',
}),
};
const ModalStack = StackNavigator({
Home: {
screen: MyHomeScreen,
},
Profile: {
path: 'people/:name',
screen: MyProfileScreen,
},
HeaderTest: {screen: MyHeaderTestScreen},
}, {
mode: 'modal',
});
export default ModalStack;