Selaa lähdekoodia

Update styling-the-navigator.md

Some navBar button properties were marked as common by mistake.
Guy Carmeli 7 vuotta sitten
vanhempi
commit
fa1e6a6b74
1 muutettua tiedostoa jossa 11 lisäystä ja 10 poistoa
  1. 11
    10
      docs/styling-the-navigator.md

+ 11
- 10
docs/styling-the-navigator.md Näytä tiedosto

@@ -39,16 +39,6 @@ this.props.navigator.setStyle({
39 39
   navBarBackgroundColor: '#f7f7f7', // change the background color of the nav bar (remembered across pushes)
40 40
 
41 41
   navBarButtonColor: '#007aff', // Change color of nav bar buttons (eg. the back button) (remembered across pushes)
42
-  navBarButtonFontSize: 20, // Change font size nav bar buttons (eg. the back button) (remembered across pushes)
43
-  navBarButtonFontWeight: '500', // Change font weight nav bar buttons (eg. the back button) (remembered across pushes)
44
-
45
-  navBarLeftButtonFontSize: 17, // Change font size of left nav bar button
46
-  navBarLeftButtonColor: 'red', // Change color of left nav bar button
47
-  navBarLeftButtonFontWeight: '400', // Change font weight of left nav bar button
48
-
49
-  navBarRightButtonFontSize: 17, // Change font size of right nav bar button
50
-  navBarRightButtonColor: 'blue', // Change color of right nav bar button
51
-  navBarRightButtonFontWeight: '600', // Change font weight of right nav bar button
52 42
 
53 43
   navBarHidden: false, // make the nav bar hidden
54 44
   navBarHideOnScroll: false, // make the nav bar hidden only after the user starts to scroll
@@ -72,6 +62,17 @@ this.props.navigator.setStyle({
72 62
   disabledBackGesture: false, // default: false. Disable the back gesture (swipe gesture) in order to pop the top screen. 
73 63
   screenBackgroundImageName: '<name of image in Images.xcassets>', // Optional. default screen background image.
74 64
   
65
+  navBarButtonFontSize: 20, // Change font size nav bar buttons (eg. the back button) (remembered across pushes)
66
+  navBarButtonFontWeight: '500', // Change font weight nav bar buttons (eg. the back button) (remembered across pushes)
67
+
68
+  navBarLeftButtonFontSize: 17, // Change font size of left nav bar button
69
+  navBarLeftButtonColor: 'red', // Change color of left nav bar button
70
+  navBarLeftButtonFontWeight: '400', // Change font weight of left nav bar button
71
+
72
+  navBarRightButtonFontSize: 17, // Change font size of right nav bar button
73
+  navBarRightButtonColor: 'blue', // Change color of right nav bar button
74
+  navBarRightButtonFontWeight: '600', // Change font weight of right nav bar button
75
+  
75 76
   // Android only
76 77
   navigationBarColor: '#000000', // change the background color of the bottom native navigation bar.
77 78
   navBarTitleTextCentered: true, // default: false. centers the title.