forked from wix/react-native-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.ts
More file actions
1730 lines (1666 loc) · 39 KB
/
Options.ts
File metadata and controls
1730 lines (1666 loc) · 39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// tslint:disable jsdoc-format
import { ImageRequireSource, ImageSourcePropType, Insets, OpaqueColorValue } from 'react-native';
// TODO: Import ColorValue instead when upgrading @types/react-native to 0.63+
// Only assign PlatformColor or DynamicColorIOS as a Color symbol!
export declare type Color = string | symbol | ThemeColor | OpaqueColorValue | null;
type FontFamily = string;
type FontStyle = 'normal' | 'italic';
type FontWeightIOS =
| 'normal'
| 'ultralight'
| 'thin'
| 'light'
| 'regular'
| 'medium'
| 'semibold'
| 'demibold'
| 'extrabold'
| 'ultrabold'
| 'bold'
| 'heavy'
| 'black';
type FontWeight =
| 'normal'
| 'bold'
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| FontWeightIOS;
export type LayoutOrientation =
| 'all'
| 'default'
| 'portrait'
| 'landscape'
| 'upsideDown'
| 'sensor'
| 'sensorLandscape'
| 'sensorPortrait';
type AndroidDensityNumber = number;
export type SystemItemIcon =
| 'done'
| 'cancel'
| 'edit'
| 'save'
| 'add'
| 'flexibleSpace'
| 'fixedSpace'
| 'compose'
| 'reply'
| 'action'
| 'organize'
| 'bookmarks'
| 'search'
| 'refresh'
| 'stop'
| 'camera'
| 'trash'
| 'play'
| 'pause'
| 'rewind'
| 'fastForward'
| 'undo'
| 'redo';
export type Interpolation =
| { type: 'accelerate'; factor?: number }
| { type: 'decelerate'; factor?: number }
| { type: 'decelerateAccelerate' }
| { type: 'accelerateDecelerate' }
| { type: 'fastOutSlowIn' }
| { type: 'linear' }
| { type: 'overshoot'; tension?: number }
| {
type: 'spring';
mass?: number;
damping?: number;
stiffness?: number;
allowsOverdamping?: boolean;
initialVelocity?: number;
};
interface ThemeColor {
light?: string | symbol;
dark?: string | symbol;
}
export interface OptionsSplitView {
/**
* Master view display mode
* @default 'auto'
*/
displayMode?: 'auto' | 'visible' | 'hidden' | 'overlay';
/**
* Master view side. Leading is left. Trailing is right.
* @default 'leading'
*/
primaryEdge?: 'leading' | 'trailing';
/**
* Set the minimum width of master view
*/
minWidth?: number;
/**
* Set the maximum width of master view
*/
maxWidth?: number;
/**
* Set background style of sidebar. Currently works for Mac Catalyst apps only.
* @default 'none'
*/
primaryBackgroundStyle?: 'none' | 'sidebar';
}
export interface OptionsStatusBar {
/**
* Set the status bar visibility
* @default true
*/
visible?: boolean;
/**
* Set the text color of the status bar
* @default 'light'
*/
style?: 'light' | 'dark';
/**
* Set the background color of the status bar
* #### (Android specific)
*/
backgroundColor?: Color;
/**
* Draw screen behind the status bar
* #### (Android specific)
*/
drawBehind?: boolean;
/**
* Allows the StatusBar to be translucent (blurred)
* #### (Android specific)
*/
translucent?: boolean;
/**
* Animate StatusBar style changes.
* #### (iOS specific)
*/
animate?: boolean;
/**
* Automatically hide the StatusBar when the TopBar hides.
* #### (iOS specific)
*/
hideWithTopBar?: boolean;
/**
* Blur content beneath the StatusBar.
* #### (iOS specific)
*/
blur?: boolean;
}
export interface OptionsLayout {
fitSystemWindows?: boolean;
/**
* Set the screen background color
*/
backgroundColor?: Color;
/**
* Set background color only for components, helps reduce overdraw if background color is set in default options.
* #### (Android specific)
*/
componentBackgroundColor?: Color;
/**
* Set the allowed orientations
*/
orientation?: LayoutOrientation[];
/**
* Layout top margin
* #### (Android specific)
*/
topMargin?: number;
/**
* Set language direction.
* only works with DefaultOptions
*/
direction?: 'rtl' | 'ltr' | 'locale';
/**
* Controls the application's preferred home indicator auto-hiding.
* #### (iOS specific)
*/
autoHideHomeIndicator?: boolean;
/**
* Add insets to the top layout
*/
insets?: Insets;
/**
* Resizes the layout when keyboard is visible
* @default true
* #### (Android specific)
*/
adjustResize?: boolean;
}
export enum OptionsModalPresentationStyle {
formSheet = 'formSheet',
pageSheet = 'pageSheet',
overFullScreen = 'overFullScreen',
overCurrentContext = 'overCurrentContext',
currentContext = 'currentContext',
popover = 'popover',
fullScreen = 'fullScreen',
none = 'none',
}
export enum OptionsModalTransitionStyle {
coverVertical = 'coverVertical',
crossDissolve = 'crossDissolve',
flipHorizontal = 'flipHorizontal',
partialCurl = 'partialCurl',
}
export interface OptionsTopBarLargeTitle {
/**
* Enable large titles
*/
visible?: boolean;
/**
* Set the font size of large title's text
*/
fontSize?: number;
/**
* Set the color of large title's text
*/
color?: Color;
/**
* Set the font family of the large title text
*/
fontFamily?: FontFamily;
/**
* Set the font style of the large title text
*/
fontStyle?: FontStyle;
/**
* Specifies font weight. The values 'normal' and 'bold' are supported
* for most fonts. Not all fonts have a variant for each of the numeric
* values, in that case the closest one is chosen.
*/
fontWeight?: FontWeight;
}
export interface OptionsTopBarTitle {
/**
* Text to display in the title area
*/
text?: string;
/**
* Font size
*/
fontSize?: number;
/**
* Text color
*/
color?: Color;
/**
* Set the font family for the title
*/
fontFamily?: FontFamily;
/**
* Set the font style for the title
*/
fontStyle?: FontStyle;
/**
* Specifies font weight. The values 'normal' and 'bold' are supported
* for most fonts. Not all fonts have a variant for each of the numeric
* values, in that case the closest one is chosen.
*/
fontWeight?: FontWeight;
/**
* Custom component as the title view
*/
component?: {
/**
* Component reference id, Auto generated if empty
*/
id?: string;
/**
* Name of your component
*/
name: string;
/**
* Set component alignment
*/
alignment?: 'center' | 'fill';
/**
* Properties to pass down to the component
*/
passProps?: object;
};
/**
* Top Bar title height in densitiy pixels
* #### (Android specific)
*/
height?: number;
/**
* Title alignment
* #### (Android specific)
*/
alignment?: 'center' | 'fill';
}
export interface OptionsTopBarSubtitle {
/**
* Set subtitle text
*/
text?: string;
/**
* Set subtitle font size
*/
fontSize?: number;
/**
* Set subtitle color
*/
color?: Color;
/**
* Set the font family for the subtitle
*/
fontFamily?: FontFamily;
/**
* Set the font style for a text
*/
fontStyle?: FontStyle;
/**
* Specifies font weight. The values 'normal' and 'bold' are supported
* for most fonts. Not all fonts have a variant for each of the numeric
* values, in that case the closest one is chosen.
*/
fontWeight?: FontWeight;
/**
* Set subtitle alignment
*/
alignment?: 'center';
}
export interface OptionsTopBarBackButton {
/**
* Overrides the text that's read by the screen reader when the user interacts with the back button
* #### (Android specific)
*/
accessibilityLabel?: string;
/**
* Button id for reference press event
*/
id?: string;
/**
* Image to show as the back button
*/
icon?: ImageResource;
/**
* SF Symbol to show as the back button
* #### (iOS 13+ specific)
*/
sfSymbol?: string;
/**
* Weither the back button is visible or not
* @default true
*/
visible?: boolean;
/**
* Set the back button title
* #### (iOS specific)
*/
title?: string;
/**
* Show title or just the icon
* #### (iOS specific)
*/
showTitle?: boolean;
/**
* Back button icon and text color
*/
color?: Color;
/**
* Set subtitle font size
*/
fontSize?: number;
/**
* Set the font family for the back button
* #### (iOS specific)
*/
fontFamily?: FontFamily;
/**
* Set the font style for a text
*/
fontStyle?: FontStyle;
/**
* Specifies font weight. The values 'normal' and 'bold' are supported
* for most fonts. Not all fonts have a variant for each of the numeric
* values, in that case the closest one is chosen.
*/
fontWeight?: FontWeight;
/**
* Set icon background style
*/
iconBackground?: IconBackgroundOptions;
/**
* Set testID for reference in E2E tests
*/
testID?: string;
/**
* Enables iOS 14 back button menu display
* #### (iOS specific)
* @default true
*/
enableMenu?: boolean;
/**
* Allows the NavBar to be translucent (blurred)
* #### (iOS specific)
*/
displayMode?: 'default' | 'generic' | 'minimal';
/**
* Controls whether the default back button should pop the Stack or not
* @default true
*/
popStackOnPress?: boolean;
/**
* (iOS 26+ only) Hide the shared Liquid-Glass / Platter background that
* UIKit draws behind the back button. Defaults to true to avoid
* double-decorating a back button whose icon already carries its own
* iconBackground. Set to false to keep the system-drawn background.
* @default true
*/
hideSharedBackground?: boolean;
}
export interface HardwareBackButtonOptions {
/**
* Controls whether the hardware back button should dismiss modal or not
* #### (Android specific)
* @default true
*/
dismissModalOnPress?: boolean;
/**
* Controls whether the hardware back button should pop the Stack or not
* #### (Android specific)
* @default true
*/
popStackOnPress?: boolean;
/**
* Controls hardware back button bottom tab selection behaviour
*/
bottomTabsOnPress?: 'exit' | 'first' | 'previous';
}
export interface OptionsTopBarScrollEdgeAppearanceBackground {
/**
* Background color of the top bar
*/
color?: Color;
/**
* Allows the NavBar to be translucent (blurred)
* #### (iOS specific)
*/
translucent?: boolean;
}
export interface OptionsTopBarScrollEdgeAppearanceTitle {
/**
* Font size
*/
fontSize?: number;
/**
* Text color
*/
color?: Color;
/**
* Set the font family for the title
*/
fontFamily?: FontFamily;
/**
* Set the font style for the title
*/
fontStyle?: FontStyle;
/**
* Specifies font weight. The values 'normal' and 'bold' are supported
* for most fonts. Not all fonts have a variant for each of the numeric
* values, in that case the closest one is chosen.
*/
fontWeight?: FontWeight;
}
export interface OptionsTopBarScrollEdgeAppearance {
/**
* Title configuration applied when the scroll view reaches the edge
* ### (iOS specific)
*/
title?: OptionsTopBarScrollEdgeAppearanceTitle;
background?: OptionsTopBarScrollEdgeAppearanceBackground;
active: boolean;
/**
* Disable the border on bottom of the navbar
* #### (iOS specific)
* @default false
*/
noBorder?: boolean;
/**
* Change the navbar border color
*/
borderColor?: Color;
}
export interface OptionsTopBarBackground {
/**
* Background color of the top bar
*/
color?: Color;
/**
* Clip the top bar background to bounds if set to true.
* #### (iOS specific)
*/
clipToBounds?: boolean;
/**
* Set a custom component for the Top Bar background
*/
component?: {
name?: string;
/**
* Properties to pass down to the component
*/
passProps?: object;
};
/**
* Allows the NavBar to be translucent (blurred)
* #### (iOS specific)
*/
translucent?: boolean;
/**
* Enable background blur
* #### (iOS specific)
*/
blur?: boolean;
}
export interface OptionsTopBarButton {
/**
* (Android only) Sets a textual button to be ALL CAPS. default value is true
*/
allCaps?: boolean;
/**
* Button id for reference press event
*/
id: string;
/**
* Set the button icon
*/
icon?: ImageResource;
/**
* Set the SF symbol as icon (will be used primarily)
* #### (iOS 13+ specific)
*/
sfSymbol?: string;
/**
* Set the button icon insets
*/
iconInsets?: IconInsets;
/**
* Set the button as a custom component
*/
component?: {
/**
* Component reference id, Auto generated if empty
*/
id?: string;
/**
* Name of your component
*/
name: string;
/**
* Properties to pass down to the component
*/
passProps?: object;
/**
* (Android only) component width
*/
width?: number;
/**
* (Android only) component height
*/
height?: number;
};
/**
* (iOS only) Set the button as an iOS system icon
*/
systemItem?: SystemItemIcon;
/**
* Set the button text
*/
text?: string;
/**
* Overrides the text that's read by the screen reader when the user interacts with the element
*/
accessibilityLabel?: string;
/**
* Set the font family for the button's text
*/
fontFamily?: FontFamily;
/**
* Set the font style for the button's text
*/
fontStyle?: FontStyle;
/**
* Specifies font weight. The values 'normal' and 'bold' are supported
* for most fonts. Not all fonts have a variant for each of the numeric
* values, in that case the closest one is chosen.
*/
fontWeight?: FontWeight;
/**
* Set the font size in dp
*/
fontSize?: number;
/**
* Set the button enabled or disabled
* @default true
*/
enabled?: boolean;
/**
* Disable icon tinting
*/
disableIconTint?: boolean;
/**
* Set text color
*/
color?: Color;
/**
* Set text color in disabled state
*/
disabledColor?: Color;
/**
* Set icon background style
*/
iconBackground?: IconBackgroundOptions;
/**
* Set testID for reference in E2E tests
*/
testID?: string;
/**
* (iOS 26+ only) Hide the shared Liquid-Glass / Platter background that
* UIKit draws behind every bar button item. Defaults to true to avoid
* double-decorating React-rendered custom views and icons that already
* carry their own background. Set to false to keep the system-drawn
* background.
* @default true
*/
hideSharedBackground?: boolean;
/**
* (Android only) Set showAsAction value
* @see {@link https://developer.android.com/guide/topics/resources/menu-resource|Android developer guide: Menu resource}
*/
showAsAction?: 'ifRoom' | 'withText' | 'always' | 'never';
}
export interface OptionsSearchBar {
visible?: boolean;
focus?: boolean;
hideOnScroll?: boolean;
hideTopBarOnFocus?: boolean;
obscuresBackgroundDuringPresentation?: boolean;
backgroundColor?: Color;
tintColor?: Color;
placeholder?: string;
cancelText?: string;
/**
* iOS 26+ only. Controls where the search bar is placed.
* - 'stacked': Below the navigation bar title (default, legacy behavior)
* - 'integrated': Inside the navigation bar
*/
placement?: 'stacked' | 'integrated';
}
export interface OptionsTopBar {
/**
* Show or hide the top bar
*/
visible?: boolean;
/**
* Controls whether TopBar visibility changes should be animated
*/
animate?: boolean;
/**
* Top bar will hide and show based on users scroll direction
*/
hideOnScroll?: boolean;
/**
* Change button colors in the top bar
*/
leftButtonColor?: Color;
rightButtonColor?: Color;
leftButtonBackgroundColor?: Color;
rightButtonBackgroundColor?: Color;
leftButtonDisabledColor?: Color;
rightButtonDisabledColor?: Color;
/**
* Draw behind the navbar
*/
drawBehind?: boolean;
/**
* Can be used to reference the top bar in E2E tests
*/
testID?: string;
/**
* Title configuration
*/
title?: OptionsTopBarTitle;
/**
* Subtitle configuration
*/
subtitle?: OptionsTopBarSubtitle;
/**
* Back button configuration
*/
backButton?: OptionsTopBarBackButton;
/**
* List of buttons to the left
*/
leftButtons?: OptionsTopBarButton[];
/**
* List of buttons to the right
*/
rightButtons?: OptionsTopBarButton[];
/**
* Background configuration
*/
background?: OptionsTopBarBackground;
/**
*
*/
scrollEdgeAppearance?: OptionsTopBarScrollEdgeAppearance;
/**
* Control the NavBar blur style
* #### (iOS specific)
* @requires translucent: true
* @default 'default'
*/
barStyle?: 'default' | 'black';
/**
* Disable the border on bottom of the navbar
* #### (iOS specific)
* @default false
*/
noBorder?: boolean;
/**
* Show a UISearchBar in the Top Bar
* #### (iOS 11+ specific)
*/
searchBar?: OptionsSearchBar;
/**
* Hides the UISearchBar when scrolling
* #### (iOS 11+ specific)
*/
searchBarHiddenWhenScrolling?: boolean;
/**
* The placeholder value in the UISearchBar
* #### (iOS 11+ specific)
*/
searchBarPlaceholder?: string;
/**
* The background color of the UISearchBar's TextField
* #### (iOS 13+ specific)
*/
searchBarBackgroundColor?: string;
/**
* The tint color of the UISearchBar
* #### (iOS 11+ specific)
*/
searchBarTintColor?: string;
/**
* Controls Hiding NavBar on focus UISearchBar
* #### (iOS 11+ specific)
*/
hideNavBarOnFocusSearchBar?: boolean;
/**
* Control the Large Title configuration
* #### (iOS 11+ specific)
*/
largeTitle?: OptionsTopBarLargeTitle;
/**
* Set the height of the navbar in dp
* #### (Android specific)
*/
height?: AndroidDensityNumber;
/**
* Change the navbar border color
*/
borderColor?: Color;
/**
* Set the border height of the navbar in dp
* #### (Android specific)
*/
borderHeight?: AndroidDensityNumber;
/**
* Set the elevation of the navbar in dp
* #### (Android specific)
*/
elevation?: AndroidDensityNumber;
/**
* Layout top margin
* #### (Android specific)
*/
topMargin?: number;
/**
* Toggles animation on left buttons bar upon changes
*/
animateLeftButtons?: boolean;
/**
* Toggles animation on right buttons bar upon changes
*/
animateRightButtons?: boolean;
}
export interface SharedElementTransition {
fromId: string;
toId: string;
duration?: number;
interpolation?: Interpolation;
}
export interface ElementTransition {
id: string;
alpha?: AppearingElementAnimation | DisappearingElementAnimation;
translationX?: AppearingElementAnimation | DisappearingElementAnimation;
translationY?: AppearingElementAnimation | DisappearingElementAnimation;
scaleX?: AppearingElementAnimation | DisappearingElementAnimation;
scaleY?: AppearingElementAnimation | DisappearingElementAnimation;
rotationX?: AppearingElementAnimation | DisappearingElementAnimation;
rotationY?: AppearingElementAnimation | DisappearingElementAnimation;
x?: AppearingElementAnimation | DisappearingElementAnimation;
y?: AppearingElementAnimation | DisappearingElementAnimation;
}
export interface AppearingElementAnimation extends ElementAnimation {
from: number;
}
export interface DisappearingElementAnimation extends ElementAnimation {
to: number;
}
export interface ElementAnimation {
duration: number;
startDelay?: number;
interpolation?: Interpolation;
}
export interface OptionsFab {
id: string;
backgroundColor?: Color;
clickColor?: Color;
rippleColor?: Color;
visible?: boolean;
icon?: ImageResource;
iconColor?: Color;
alignHorizontally?: 'left' | 'right';
hideOnScroll?: boolean;
size?: 'mini' | 'regular';
}
export interface OptionsBottomTabs {
/**
* Show or hide the bottom tabs
*/
visible?: boolean;
/**
* Enable animations when toggling visibility
*/
animate?: boolean;
/**
* Controls whether tab selection is animated or not
* #### (android specific)
* @default true
*/
animateTabSelection?: boolean;
/**
* Use large icons when possible, even when three tabs without titles are displayed
* #### (android specific)
* @default false
*/
preferLargeIcons?: boolean;
/**
* Switch to another screen within the bottom tabs via index (starting from 0)
*/
currentTabIndex?: number;
/**
* Switch to another screen within the bottom tabs via screen name
*/
currentTabId?: string;
/**
* Set a testID to reference the bottom tabs
*/
testID?: string;
/**
* Overrides the text that's read by the screen reader when the user interacts with the element
* #### (iOS specific)
*/
accessibilityLabel?: string;
/**
* Draw screen component under the tab bar
*/
drawBehind?: boolean;
/**
* Set a background color for the bottom tabs.<br/>
* On Android - also applicable when translucence is applied, but a semi-transparent
* color should be used (e.g. `rgba(255, 0, 0, 0.25)`).
*/
backgroundColor?: Color;
/**
* Set when tabs are attached to hierarchy consequently when the
* RootView's constructor is called.
*/
tabsAttachMode?: 'together' | 'afterInitialTab' | 'onSwitchToTab';
/**
* Control the Bottom Tabs blur style
* #### (iOS specific)
* @requires translucent: true
* @default 'default'
*/
barStyle?: 'default' | 'black';
/**
* Control the way the bottom tabs are laid out.
* - `stretch`: Fill the entire width of the screen.
* - `compact`: Occupy the minimum width needed to hold tab buttons. Recommended for
* usage in conjunction with `drawBehind: true`.
*
* #### (Android specific)
* @default 'stretch'
*/
layoutStyle?: 'stretch' | 'compact';
/**
* Specify a corner-radius (in dip) in order to apply round corners to the tabs container.<br/>
* Mainly suitable when used in conjunction with `layoutStyle: 'compact'`
* #### (Android specific)
*/
cornerRadius?: AndroidDensityNumber;
/**
* Bottom-margin to set in order to apply a "hover" effect.
* Works best when used in conjunction with `layoutStyle: 'compact'` and `drawBehind: true`.
* #### (Android specific)
*/
bottomMargin?: AndroidDensityNumber;
/**
* Allows the bottom tabs to be translucent (blurred). Doesn't necessarily play
* nice with shadow effects on Android.
* #### Android: experimental, turn on using native toggle `TAB_BAR_TRANSLUCENCE`.
*/
translucent?: boolean;
/**
* Set a custom radius to be used in the blur effect. Higher is blurrier, but
* also more CPU-intensive.<br/>
* Note: The blurring is performed following a bitmap downscale of x4.0, so
* ultimately the actual radius is (4*blurRadius).
* #### (Android specific)
* @defaultValue 1.0
*/
blurRadius?: AndroidDensityNumber;
/**
* Hide the top line of the Tab Bar
* #### (iOS specific)
*/
hideShadow?: boolean;
/**
* Control the text display mode below the tab icon
* #### (Android specific)
*/
titleDisplayMode?: 'alwaysShow' | 'showWhenActive' | 'alwaysHide' | 'showWhenActiveForce';
/**
* Set the elevation of the Bottom Tabs in dp
* #### (Android specific)
*/
elevation?: AndroidDensityNumber;
/**
* Hides the BottomTabs on scroll to increase the amount of content visible to the user.
* The options requires that the scrollable view will be the root view of the screen and that it specifies `nestedScrollEnabled: true`.
* #### (Android specific)
*/
hideOnScroll?: boolean;
/**
* Control the top border color of the Bottom tabs bar
*/
borderColor?: Color;
/**
* Control the top border width of the Bottom tabs bar
*/
borderWidth?: number;
/**
* Control the shadow of the Bottom tabs bar
*/