Parcourir la source

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

Aaron Brager il y a 6 ans
Parent
révision
fa0015af09
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3
    0
      docs/adding-buttons-to-the-navigator.md

+ 3
- 0
docs/adding-buttons-to-the-navigator.md Voir le fichier

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