Przeglądaj źródła

Update styling-the-navigator.md

Guy Carmeli 7 lat temu
rodzic
commit
271b624a73
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      docs/styling-the-navigator.md

+ 2
- 1
docs/styling-the-navigator.md Wyświetl plik

@@ -38,7 +38,8 @@ this.props.navigator.setStyle({
38 38
   navBarTextFontSize: 18, // change the font size of the title
39 39
   navBarTextFontFamily: 'font-name', // Changes the title font
40 40
   navBarBackgroundColor: '#f7f7f7', // change the background color of the nav bar (remembered across pushes)
41
-
41
+  navBarCustomView: 'example.CustomTopBar', // registered component name
42
+  navBarComponentAlignment: 'center', // center/fill
42 43
   navBarButtonColor: '#007aff', // Change color of nav bar buttons (eg. the back button) (remembered across pushes)
43 44
 
44 45
   navBarHidden: false, // make the nav bar hidden