|
@@ -67,6 +67,7 @@ class Options extends Component {
|
67
|
67
|
<Button label='Push' testID={PUSH_BTN} onPress={this.push} />
|
68
|
68
|
<Button label='Hide TopBar in DefaultOptions' testID={HIDE_TOPBAR_DEFAULT_OPTIONS} onPress={this.hideTopBarInDefaultOptions} />
|
69
|
69
|
<Button label='Set React Title View' testID={SET_REACT_TITLE_VIEW} onPress={this.setReactTitleView} />
|
|
70
|
+ <Button label='Set Title' testID={SET_REACT_TITLE_VIEW} onPress={this.setTitle} />
|
70
|
71
|
<Button label='Show Yellow Box' testID={SHOW_YELLOW_BOX_BTN} onPress={() => console.warn('Yellow Box')} />
|
71
|
72
|
<Button label='StatusBar' onPress={this.statusBarScreen} />
|
72
|
73
|
</Root>
|
|
@@ -120,6 +121,14 @@ class Options extends Component {
|
120
|
121
|
}
|
121
|
122
|
});
|
122
|
123
|
|
|
124
|
+ setTitle = () => Navigation.mergeOptions(this, {
|
|
125
|
+ topBar: {
|
|
126
|
+ title: {
|
|
127
|
+ text: 'Title'
|
|
128
|
+ }
|
|
129
|
+ }
|
|
130
|
+ });
|
|
131
|
+
|
123
|
132
|
statusBarScreen = () => Navigation.showModal(Screens.StatusBar);
|
124
|
133
|
}
|
125
|
134
|
|