Bläddra i källkod

Update styling-the-navigator.md

Guy Carmeli 7 år sedan
förälder
incheckning
271b624a73
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2
    1
      docs/styling-the-navigator.md

+ 2
- 1
docs/styling-the-navigator.md Visa fil

@@ -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