Browse Source

Document topBar options for Android's showAsAction (#5199)

Closes  #4001
Alberto Blanco 5 years ago
parent
commit
9735115fb3
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      lib/src/interfaces/Options.ts

+ 5
- 0
lib/src/interfaces/Options.ts View File

@@ -309,6 +309,11 @@ export interface OptionsTopBarButton {
309 309
    * Set testID for reference in E2E tests
310 310
    */
311 311
   testID?: string;
312
+  /**
313
+   * (Android only) Set showAsAction value
314
+   * @see {@link https://developer.android.com/guide/topics/resources/menu-resource|Android developer guide: Menu resource} 
315
+   */
316
+  showAsAction?: 'ifRoom' | 'withText' | 'always' | 'never';
312 317
 }
313 318
 
314 319
 export interface OptionsTopBar {