Browse Source

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

Aaron Brager 6 years ago
parent
commit
fa0015af09
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      docs/adding-buttons-to-the-navigator.md

+ 3
- 0
docs/adding-buttons-to-the-navigator.md View File

101
 
101
 
102
 
102
 
103
 ##### Android left button
103
 ##### Android left button
104
+
104
 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
 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
 * back
107
 * back
108
 * accept
109
 * accept
109
 * sideMenu
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
 #### Custom Navigation Buttons
114
 #### Custom Navigation Buttons
112
 
115
 
113
 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.
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.