mirror of
https://github.com/expo/react-navigation-stack.git
synced 2026-11-15 17:40:13 -10:00
Add a title in modal example
This commit is contained in:
1 parent
af83d75731
commit
680dc515ad
1 file changed
+4
@@ -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: 'My Modal',
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
|
||||
|
||||
Reference in new issue
Block a user