瀏覽代碼

Update OptionsBottomTab (#5340)

undefined 5 年之前
父節點
當前提交
00152d4eeb
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12
    1
      lib/src/interfaces/Options.ts

+ 12
- 1
lib/src/interfaces/Options.ts 查看文件

@@ -312,7 +312,7 @@ export interface OptionsTopBarButton {
312 312
   testID?: string;
313 313
   /**
314 314
    * (Android only) Set showAsAction value
315
-   * @see {@link https://developer.android.com/guide/topics/resources/menu-resource|Android developer guide: Menu resource} 
315
+   * @see {@link https://developer.android.com/guide/topics/resources/menu-resource|Android developer guide: Menu resource}
316 316
    */
317 317
   showAsAction?: 'ifRoom' | 'withText' | 'always' | 'never';
318 318
 }
@@ -513,7 +513,18 @@ export interface OptionsBottomTabs {
513 513
   elevation?: AndroidDensityNumber;
514 514
 }
515 515
 
516
+export interface DotIndicatorOptions {
517
+    // default red
518
+    color?: Color,
519
+    // default 6
520
+    size?: number,
521
+    // default false
522
+    visible?: boolean,
523
+}
524
+
516 525
 export interface OptionsBottomTab {
526
+    dotIndicator?: DotIndicatorOptions,
527
+
517 528
   /**
518 529
    * Set the text to display below the icon
519 530
    */