Explorar el Código

Add note about Android left button icon constraint (#2963)

Aaron Brager hace 6 años
padre
commit
fa0015af09
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3
    0
      docs/adding-buttons-to-the-navigator.md

+ 3
- 0
docs/adding-buttons-to-the-navigator.md Ver fichero

@@ -101,6 +101,7 @@ More information about these glyphs can be found in [Apple's Human Interface Gui
101 101
 
102 102
 
103 103
 ##### Android left button
104
+
104 105
 On Android, four button types are supported by default without the need to provide an icon. You can use them by specifying one of the following ids in your left button definition:
105 106
 
106 107
 * back
@@ -108,6 +109,8 @@ On Android, four button types are supported by default without the need to provi
108 109
 * accept
109 110
 * sideMenu
110 111
 
112
+Except for these 4 cases, the left button **must** have an icon on Android. It can't be a text only button.
113
+
111 114
 #### Custom Navigation Buttons
112 115
 
113 116
 On iOS, react-native-navigation uses `UIBarButtonItem` to display all items in the navigation bar. Instead of using images or text for normal `UIBarButtonItem`s, you can supply a custom component to be displayed within a custom view of a `UIBarButtonItem`, using the `component` property when specifying a navigation button.