|
@@ -0,0 +1,740 @@
|
|
1
|
+// tslint:disable jsdoc-format
|
|
2
|
+import { ImageRequireSource, Insets } from 'react-native';
|
|
3
|
+
|
|
4
|
+type Color = string;
|
|
5
|
+type FontFamily = string;
|
|
6
|
+type LayoutOrientation = 'portrait' | 'landscape';
|
|
7
|
+type AndroidDensityNumber = number;
|
|
8
|
+
|
|
9
|
+export interface OptionsSplitView {
|
|
10
|
+ /**
|
|
11
|
+ * Master view display mode
|
|
12
|
+ * @default 'auto'
|
|
13
|
+ */
|
|
14
|
+ displayMode: 'auto' | 'visible' | 'hidden' | 'overlay';
|
|
15
|
+ /**
|
|
16
|
+ * Master view side. Leading is left. Trailing is right.
|
|
17
|
+ * @default 'leading'
|
|
18
|
+ */
|
|
19
|
+ primaryEdge: 'leading' | 'trailing';
|
|
20
|
+ /**
|
|
21
|
+ * Set the minimum width of master view
|
|
22
|
+ */
|
|
23
|
+ minWidth: number;
|
|
24
|
+ /**
|
|
25
|
+ * Set the maximum width of master view
|
|
26
|
+ */
|
|
27
|
+ maxWidth: number;
|
|
28
|
+}
|
|
29
|
+
|
|
30
|
+export interface OptionsStatusBar {
|
|
31
|
+ /**
|
|
32
|
+ * Set the status bar visibility
|
|
33
|
+ * @default true
|
|
34
|
+ */
|
|
35
|
+ visible?: boolean;
|
|
36
|
+ /**
|
|
37
|
+ * Set the text color of the status bar
|
|
38
|
+ * @default 'light'
|
|
39
|
+ */
|
|
40
|
+ style?: 'light' | 'dark';
|
|
41
|
+ /**
|
|
42
|
+ * Set the background color of the status bar
|
|
43
|
+ * #### (Android specific)
|
|
44
|
+ */
|
|
45
|
+ backgroundColor: Color;
|
|
46
|
+ /**
|
|
47
|
+ * Draw screen behind the status bar
|
|
48
|
+ * #### (Android specific)
|
|
49
|
+ */
|
|
50
|
+ drawBehind: boolean;
|
|
51
|
+}
|
|
52
|
+
|
|
53
|
+export interface OptionsLayout {
|
|
54
|
+ /**
|
|
55
|
+ * Set the screen background color
|
|
56
|
+ */
|
|
57
|
+ backgroundColor?: Color;
|
|
58
|
+ /**
|
|
59
|
+ * Set the allowed orientations
|
|
60
|
+ */
|
|
61
|
+ orientation?: LayoutOrientation[];
|
|
62
|
+ /**
|
|
63
|
+ * Layout top margin
|
|
64
|
+ * #### (Android specific)
|
|
65
|
+ */
|
|
66
|
+ topMargin: number;
|
|
67
|
+}
|
|
68
|
+
|
|
69
|
+export enum OptionsModalPresentationStyle {
|
|
70
|
+ 'formSheet',
|
|
71
|
+ 'pageSheet',
|
|
72
|
+ 'overFullScreen',
|
|
73
|
+ 'overCurrentContext',
|
|
74
|
+ 'currentContext',
|
|
75
|
+ 'popOver',
|
|
76
|
+ 'fullScreen',
|
|
77
|
+ 'none',
|
|
78
|
+}
|
|
79
|
+
|
|
80
|
+export interface OptionsTopBarLargeTitle {
|
|
81
|
+ /**
|
|
82
|
+ * Enable large titles
|
|
83
|
+ */
|
|
84
|
+ visible?: boolean;
|
|
85
|
+ /**
|
|
86
|
+ * Set the font size of large title's text
|
|
87
|
+ */
|
|
88
|
+ fontSize?: number;
|
|
89
|
+ /**
|
|
90
|
+ * Set the color of large title's text
|
|
91
|
+ */
|
|
92
|
+ color?: Color;
|
|
93
|
+ /**
|
|
94
|
+ * Set the font family of large title's text
|
|
95
|
+ */
|
|
96
|
+ fontFamily?: FontFamily;
|
|
97
|
+}
|
|
98
|
+
|
|
99
|
+export interface OptionsTopBarTitle {
|
|
100
|
+ /**
|
|
101
|
+ * Text to display in the title area
|
|
102
|
+ */
|
|
103
|
+ text?: string;
|
|
104
|
+ /**
|
|
105
|
+ * Font size
|
|
106
|
+ */
|
|
107
|
+ fontSize?: number;
|
|
108
|
+ /**
|
|
109
|
+ * Text color
|
|
110
|
+ */
|
|
111
|
+ color?: Color;
|
|
112
|
+ /**
|
|
113
|
+ * Title font family
|
|
114
|
+ *
|
|
115
|
+ * Make sure that the font is available
|
|
116
|
+ */
|
|
117
|
+ fontFamily?: FontFamily;
|
|
118
|
+ /**
|
|
119
|
+ * Custom component as the title view
|
|
120
|
+ */
|
|
121
|
+ component?: {
|
|
122
|
+ name: string;
|
|
123
|
+ alignment?: 'center' | 'fill';
|
|
124
|
+ };
|
|
125
|
+ /**
|
|
126
|
+ * Top Bar title height in densitiy pixels
|
|
127
|
+ * #### (Android specific)
|
|
128
|
+ */
|
|
129
|
+ height: number;
|
|
130
|
+}
|
|
131
|
+
|
|
132
|
+export interface OptionsTopBarSubtitle {
|
|
133
|
+ /**
|
|
134
|
+ * Set subtitle text
|
|
135
|
+ */
|
|
136
|
+ text?: string;
|
|
137
|
+ /**
|
|
138
|
+ * Set subtitle font size
|
|
139
|
+ */
|
|
140
|
+ fontSize?: number;
|
|
141
|
+ /**
|
|
142
|
+ * Set subtitle color
|
|
143
|
+ */
|
|
144
|
+ color?: Color;
|
|
145
|
+ /**
|
|
146
|
+ * Set subtitle font family
|
|
147
|
+ */
|
|
148
|
+ fontFamily?: FontFamily;
|
|
149
|
+ /**
|
|
150
|
+ * Set subtitle alignment
|
|
151
|
+ */
|
|
152
|
+ alignment?: 'center';
|
|
153
|
+}
|
|
154
|
+
|
|
155
|
+export interface OptionsTopBarBackButton {
|
|
156
|
+ /**
|
|
157
|
+ * Image to show as the back button
|
|
158
|
+ */
|
|
159
|
+ icon: ImageRequireSource;
|
|
160
|
+ /**
|
|
161
|
+ * Weither the back button is visible or not
|
|
162
|
+ * @default true
|
|
163
|
+ */
|
|
164
|
+ visible: boolean;
|
|
165
|
+ /**
|
|
166
|
+ * Set the back button title
|
|
167
|
+ * #### (iOS specific)
|
|
168
|
+ */
|
|
169
|
+ title: string;
|
|
170
|
+ /**
|
|
171
|
+ * Show title or just the icon
|
|
172
|
+ * #### (iOS specific)
|
|
173
|
+ */
|
|
174
|
+ showTitle: boolean;
|
|
175
|
+ /**
|
|
176
|
+ * Back button icon or text color
|
|
177
|
+ * #### (Android specific)
|
|
178
|
+ */
|
|
179
|
+ color?: Color;
|
|
180
|
+}
|
|
181
|
+
|
|
182
|
+export interface OptionsTopBarBackground {
|
|
183
|
+ /**
|
|
184
|
+ * Background color of the top bar
|
|
185
|
+ */
|
|
186
|
+ color?: Color;
|
|
187
|
+ /**
|
|
188
|
+ * Set a custom component for the Top Bar background
|
|
189
|
+ */
|
|
190
|
+ component?: {
|
|
191
|
+ name?: string;
|
|
192
|
+ };
|
|
193
|
+}
|
|
194
|
+
|
|
195
|
+export interface OptionsTopBarButton {
|
|
196
|
+ /**
|
|
197
|
+ * Button id for reference press event
|
|
198
|
+ */
|
|
199
|
+ id: string;
|
|
200
|
+ /**
|
|
201
|
+ * Set the button icon
|
|
202
|
+ */
|
|
203
|
+ icon?: ImageRequireSource;
|
|
204
|
+ /**
|
|
205
|
+ * Set the button as a custom component
|
|
206
|
+ */
|
|
207
|
+ component?: {
|
|
208
|
+ name: string;
|
|
209
|
+ };
|
|
210
|
+ /**
|
|
211
|
+ * Set the button text
|
|
212
|
+ */
|
|
213
|
+ text?: string;
|
|
214
|
+ /**
|
|
215
|
+ * Set the button enabled or disabled
|
|
216
|
+ * @default true
|
|
217
|
+ */
|
|
218
|
+ enabled?: boolean;
|
|
219
|
+ /**
|
|
220
|
+ * Disable icon tinting
|
|
221
|
+ */
|
|
222
|
+ disableIconTint?: boolean;
|
|
223
|
+ /**
|
|
224
|
+ * Set text color
|
|
225
|
+ */
|
|
226
|
+ color?: Color;
|
|
227
|
+ /**
|
|
228
|
+ * Set text color in disabled state
|
|
229
|
+ */
|
|
230
|
+ disabledColor?: Color;
|
|
231
|
+ /**
|
|
232
|
+ * Set testID for reference in E2E tests
|
|
233
|
+ */
|
|
234
|
+ testID: string;
|
|
235
|
+}
|
|
236
|
+
|
|
237
|
+export interface OptionsTopBar {
|
|
238
|
+ /**
|
|
239
|
+ * Show or hide the top bar
|
|
240
|
+ */
|
|
241
|
+ visible?: boolean;
|
|
242
|
+ /**
|
|
243
|
+ * Controls whether TopBar visibility changes should be animated
|
|
244
|
+ */
|
|
245
|
+ animate?: boolean;
|
|
246
|
+ /**
|
|
247
|
+ * Top bar will hide and show based on users scroll direction
|
|
248
|
+ */
|
|
249
|
+ hideOnScroll?: boolean;
|
|
250
|
+ /**
|
|
251
|
+ * Change button colors in the top bar
|
|
252
|
+ */
|
|
253
|
+ buttonColor?: Color;
|
|
254
|
+ /**
|
|
255
|
+ * Draw behind the navbar
|
|
256
|
+ */
|
|
257
|
+ drawBehind?: boolean;
|
|
258
|
+ /**
|
|
259
|
+ * Can be used to reference the top bar in E2E tests
|
|
260
|
+ */
|
|
261
|
+ testID?: string;
|
|
262
|
+ /**
|
|
263
|
+ * Title configuration
|
|
264
|
+ */
|
|
265
|
+ title?: OptionsTopBarTitle;
|
|
266
|
+ /**
|
|
267
|
+ * Subtitle configuration
|
|
268
|
+ */
|
|
269
|
+ subtitle?: OptionsTopBarSubtitle;
|
|
270
|
+ /**
|
|
271
|
+ * Back button configuration
|
|
272
|
+ */
|
|
273
|
+ backButton?: OptionsTopBarBackButton;
|
|
274
|
+ /**
|
|
275
|
+ * List of buttons to the left
|
|
276
|
+ */
|
|
277
|
+ leftButtons?: OptionsTopBarButton[];
|
|
278
|
+ /**
|
|
279
|
+ * List of buttons to the right
|
|
280
|
+ */
|
|
281
|
+ rightButtons?: OptionsTopBarButton[];
|
|
282
|
+ /**
|
|
283
|
+ * Background configuration
|
|
284
|
+ */
|
|
285
|
+ background?: OptionsTopBarBackground;
|
|
286
|
+ /**
|
|
287
|
+ * Control the NavBar blur style
|
|
288
|
+ * #### (iOS specific)
|
|
289
|
+ * @requires translucent: true
|
|
290
|
+ * @default 'default'
|
|
291
|
+ */
|
|
292
|
+ barStyle: 'default' | 'black';
|
|
293
|
+ /**
|
|
294
|
+ * Allows the NavBar to be translucent (blurred)
|
|
295
|
+ * #### (iOS specific)
|
|
296
|
+ * @requires transparent: false
|
|
297
|
+ */
|
|
298
|
+ translucent: boolean;
|
|
299
|
+ /**
|
|
300
|
+ * Allows the NavBar to be transparent
|
|
301
|
+ * #### (iOS specific)
|
|
302
|
+ */
|
|
303
|
+ transparent: boolean;
|
|
304
|
+ /**
|
|
305
|
+ * Disable the border on bottom of the navbar
|
|
306
|
+ * #### (iOS specific)
|
|
307
|
+ * @default false
|
|
308
|
+ */
|
|
309
|
+ noBorder: boolean;
|
|
310
|
+ /**
|
|
311
|
+ * Enable background blur
|
|
312
|
+ * #### (iOS specific)
|
|
313
|
+ */
|
|
314
|
+ blur: boolean;
|
|
315
|
+ /**
|
|
316
|
+ * Show a UISearchBar in the Top Bar
|
|
317
|
+ * #### (iOS 11+ specific)
|
|
318
|
+ */
|
|
319
|
+ searchBar?: boolean;
|
|
320
|
+ /**
|
|
321
|
+ * Hides the UISearchBar when scrolling
|
|
322
|
+ * #### (iOS 11+ specific)
|
|
323
|
+ */
|
|
324
|
+ searchBarHiddenWhenScrolling?: boolean;
|
|
325
|
+ /**
|
|
326
|
+ * The placeholder value in the UISearchBar
|
|
327
|
+ * #### (iOS 11+ specific)
|
|
328
|
+ */
|
|
329
|
+ searchBarPlaceholder?: string;
|
|
330
|
+ /**
|
|
331
|
+ * Control the Large Title configuration
|
|
332
|
+ * #### (iOS 11+ specific)
|
|
333
|
+ */
|
|
334
|
+ largeTitle?: OptionsTopBarLargeTitle;
|
|
335
|
+ /**
|
|
336
|
+ * Set the height of the navbar in dp
|
|
337
|
+ * #### (Android specific)
|
|
338
|
+ */
|
|
339
|
+ height?: AndroidDensityNumber;
|
|
340
|
+ /**
|
|
341
|
+ * Change the navbar border color
|
|
342
|
+ * #### (Android specific)
|
|
343
|
+ */
|
|
344
|
+ borderColor?: Color;
|
|
345
|
+ /**
|
|
346
|
+ * Set the border height of the navbar in dp
|
|
347
|
+ * #### (Android specific)
|
|
348
|
+ */
|
|
349
|
+ borderHeight?: AndroidDensityNumber;
|
|
350
|
+ /**
|
|
351
|
+ * Set the elevation of the navbar in dp
|
|
352
|
+ * #### (Android specific)
|
|
353
|
+ */
|
|
354
|
+ elevation?: AndroidDensityNumber;
|
|
355
|
+}
|
|
356
|
+
|
|
357
|
+export interface OptionsBottomTabs {
|
|
358
|
+ /**
|
|
359
|
+ * Show or hide the bottom tabs
|
|
360
|
+ */
|
|
361
|
+ visible?: boolean;
|
|
362
|
+ /**
|
|
363
|
+ * Enable animations when toggling visibility
|
|
364
|
+ */
|
|
365
|
+ animate?: boolean;
|
|
366
|
+ /**
|
|
367
|
+ * Switch to another screen within the bottom tabs via index (starting from 0)
|
|
368
|
+ */
|
|
369
|
+ currentTabIndex?: number;
|
|
370
|
+ /**
|
|
371
|
+ * Switch to another screen within the bottom tabs via screen name
|
|
372
|
+ */
|
|
373
|
+ currentTabId?: string;
|
|
374
|
+ /**
|
|
375
|
+ * Set a testID to reference the bottom tabs
|
|
376
|
+ */
|
|
377
|
+ testID?: string;
|
|
378
|
+ /**
|
|
379
|
+ * Draw screen component under the tab bar
|
|
380
|
+ */
|
|
381
|
+ drawBehind?: boolean;
|
|
382
|
+ /**
|
|
383
|
+ * Set a background color for the bottom tabs
|
|
384
|
+ */
|
|
385
|
+ backgroundColor?: Color;
|
|
386
|
+ /**
|
|
387
|
+ * Control the Bottom Tabs blur style
|
|
388
|
+ * #### (iOS specific)
|
|
389
|
+ * @requires translucent: true
|
|
390
|
+ * @default 'default'
|
|
391
|
+ */
|
|
392
|
+ barStyle?: 'default' | 'black';
|
|
393
|
+ /**
|
|
394
|
+ * Allows the Bottom Tabs to be translucent (blurred)
|
|
395
|
+ * #### (iOS specific)
|
|
396
|
+ * @requires transparent: false
|
|
397
|
+ */
|
|
398
|
+ translucent?: boolean;
|
|
399
|
+ /**
|
|
400
|
+ * Hide the top line of the Tab Bar
|
|
401
|
+ * #### (iOS specific)
|
|
402
|
+ */
|
|
403
|
+ hideShadow?: boolean;
|
|
404
|
+ /**
|
|
405
|
+ * Control the text display mode below the tab icon
|
|
406
|
+ * #### (Android specific)
|
|
407
|
+ */
|
|
408
|
+ titleDisplayMode?: 'alwaysShow' | 'showWhenActive' | 'alwaysHide';
|
|
409
|
+}
|
|
410
|
+
|
|
411
|
+export interface OptionsBottomTab {
|
|
412
|
+ /**
|
|
413
|
+ * Set the text to display below the icon
|
|
414
|
+ */
|
|
415
|
+ text?: string;
|
|
416
|
+ /**
|
|
417
|
+ * Set the text in a badge that is overlayed over the component
|
|
418
|
+ */
|
|
419
|
+ badge?: string;
|
|
420
|
+ /**
|
|
421
|
+ * Set a testID to reference the tab in E2E tests
|
|
422
|
+ */
|
|
423
|
+ testID?: string;
|
|
424
|
+ /**
|
|
425
|
+ * Set the tab icon
|
|
426
|
+ */
|
|
427
|
+ icon?: ImageRequireSource;
|
|
428
|
+ /**
|
|
429
|
+ * Set the icon tint
|
|
430
|
+ */
|
|
431
|
+ iconColor?: Color;
|
|
432
|
+ /**
|
|
433
|
+ * Set the text color
|
|
434
|
+ */
|
|
435
|
+ textColor?: Color;
|
|
436
|
+ /**
|
|
437
|
+ * Set the selected icon tint
|
|
438
|
+ */
|
|
439
|
+ selectedIconColor?: Color;
|
|
440
|
+ /**
|
|
441
|
+ * Set the selected text color
|
|
442
|
+ */
|
|
443
|
+ selectedTextColor?: Color;
|
|
444
|
+ /**
|
|
445
|
+ * Set the text font family
|
|
446
|
+ */
|
|
447
|
+ fontFamily?: FontFamily;
|
|
448
|
+ /**
|
|
449
|
+ * Set the text font size
|
|
450
|
+ */
|
|
451
|
+ fontSize?: number;
|
|
452
|
+ /**
|
|
453
|
+ * Set the insets of the icon
|
|
454
|
+ * #### (iOS specific)
|
|
455
|
+ */
|
|
456
|
+ iconInsets?: Insets;
|
|
457
|
+ /**
|
|
458
|
+ * Set selected icon image
|
|
459
|
+ * #### (iOS specific)
|
|
460
|
+ */
|
|
461
|
+ selectedIcon?: ImageRequireSource;
|
|
462
|
+ /**
|
|
463
|
+ * Set true if you want to disable the icon tinting
|
|
464
|
+ * #### (iOS specific)
|
|
465
|
+ */
|
|
466
|
+ disableIconTint?: boolean;
|
|
467
|
+ /**
|
|
468
|
+ * Set true if you want to disable the text tinting
|
|
469
|
+ * #### (iOS specific)
|
|
470
|
+ */
|
|
471
|
+ disableSelectedIconTint?: boolean;
|
|
472
|
+ /**
|
|
473
|
+ * Set the font size for selected tabs
|
|
474
|
+ * #### (Android specific)
|
|
475
|
+ */
|
|
476
|
+ selectedFontSize?: number;
|
|
477
|
+}
|
|
478
|
+
|
|
479
|
+export interface SideMenuSide {
|
|
480
|
+ /**
|
|
481
|
+ * Show or hide the side menu
|
|
482
|
+ */
|
|
483
|
+ visible?: boolean;
|
|
484
|
+ /**
|
|
485
|
+ * Enable or disable the side menu
|
|
486
|
+ */
|
|
487
|
+ enabled?: boolean;
|
|
488
|
+}
|
|
489
|
+
|
|
490
|
+export interface OptionsSideMenu {
|
|
491
|
+ /**
|
|
492
|
+ * Configure the left side menu
|
|
493
|
+ */
|
|
494
|
+ left?: SideMenuSide;
|
|
495
|
+ /**
|
|
496
|
+ * Configure the right side menu
|
|
497
|
+ */
|
|
498
|
+ right?: SideMenuSide;
|
|
499
|
+}
|
|
500
|
+
|
|
501
|
+export interface OptionsOverlay {
|
|
502
|
+ /**
|
|
503
|
+ * Capture touches outside of the Component View
|
|
504
|
+ */
|
|
505
|
+ interceptTouchOutside?: boolean;
|
|
506
|
+}
|
|
507
|
+
|
|
508
|
+export interface OptionsPreviewAction {
|
|
509
|
+ /**
|
|
510
|
+ * Reference ID to get callbacks from
|
|
511
|
+ */
|
|
512
|
+ id: string;
|
|
513
|
+ /**
|
|
514
|
+ * Action text
|
|
515
|
+ */
|
|
516
|
+ title: string;
|
|
517
|
+ /**
|
|
518
|
+ * Action style
|
|
519
|
+ */
|
|
520
|
+ style?: 'default' | 'selected' | 'destructive';
|
|
521
|
+ /**
|
|
522
|
+ * Subactions that will be shown when this action is pressed.
|
|
523
|
+ */
|
|
524
|
+ actions?: OptionsPreviewAction[];
|
|
525
|
+}
|
|
526
|
+
|
|
527
|
+export interface OptionsPreview {
|
|
528
|
+ /**
|
|
529
|
+ * Pass a react node tag to mark a SourceRect for a specific
|
|
530
|
+ * peek and pop preview element.
|
|
531
|
+ */
|
|
532
|
+ reactTag?: number;
|
|
533
|
+ /**
|
|
534
|
+ * You can set this property specify the width of the preview.
|
|
535
|
+ * If the width is greater than the device width, it will be zoomed in.
|
|
536
|
+ */
|
|
537
|
+ width?: number;
|
|
538
|
+ /**
|
|
539
|
+ * Height of the preview
|
|
540
|
+ */
|
|
541
|
+ height?: 100;
|
|
542
|
+ /**
|
|
543
|
+ * You can control if the users gesture will result in pushing
|
|
544
|
+ * the preview screen into the stack.
|
|
545
|
+ */
|
|
546
|
+ commit?: boolean;
|
|
547
|
+ /**
|
|
548
|
+ * List of actions that will appear underneath the preview window.
|
|
549
|
+ * They can be nested for sub actions.
|
|
550
|
+ */
|
|
551
|
+ actions?: OptionsPreviewAction[];
|
|
552
|
+}
|
|
553
|
+
|
|
554
|
+export interface OptionsAnimationPropertyConfig {
|
|
555
|
+ /**
|
|
556
|
+ * Animate from this value, ex. 0
|
|
557
|
+ */
|
|
558
|
+ from: number;
|
|
559
|
+ /**
|
|
560
|
+ * Animate to this value, ex. 1
|
|
561
|
+ */
|
|
562
|
+ to: number;
|
|
563
|
+ /**
|
|
564
|
+ * Animation duration
|
|
565
|
+ * @default 300
|
|
566
|
+ */
|
|
567
|
+ duration?: number;
|
|
568
|
+ /**
|
|
569
|
+ * Animation delay
|
|
570
|
+ * @default 0
|
|
571
|
+ */
|
|
572
|
+ startDelay?: number;
|
|
573
|
+ /**
|
|
574
|
+ * Animation interplation
|
|
575
|
+ */
|
|
576
|
+ interpolation?: 'accelerate' | 'decelerate';
|
|
577
|
+}
|
|
578
|
+
|
|
579
|
+export interface OptionsAnimationProperties {
|
|
580
|
+ /**
|
|
581
|
+ * Animate the element over translateX
|
|
582
|
+ */
|
|
583
|
+ x?: OptionsAnimationPropertyConfig;
|
|
584
|
+ /**
|
|
585
|
+ * Animate the element over translateY
|
|
586
|
+ */
|
|
587
|
+ y?: OptionsAnimationPropertyConfig;
|
|
588
|
+ /**
|
|
589
|
+ * Animate the element over opacity
|
|
590
|
+ */
|
|
591
|
+ alpha?: OptionsAnimationPropertyConfig;
|
|
592
|
+ /**
|
|
593
|
+ * Animate the element over scaleX
|
|
594
|
+ */
|
|
595
|
+ scaleX?: OptionsAnimationPropertyConfig;
|
|
596
|
+ /**
|
|
597
|
+ * Animate the element over scaleY
|
|
598
|
+ */
|
|
599
|
+ scaleY?: OptionsAnimationPropertyConfig;
|
|
600
|
+ /**
|
|
601
|
+ * Animate the element over rotationX
|
|
602
|
+ */
|
|
603
|
+ rotationX?: OptionsAnimationPropertyConfig;
|
|
604
|
+ /**
|
|
605
|
+ * Animate the element over rotationY
|
|
606
|
+ */
|
|
607
|
+ rotationY?: OptionsAnimationPropertyConfig;
|
|
608
|
+ /**
|
|
609
|
+ * Animate the element over rotation
|
|
610
|
+ */
|
|
611
|
+ rotation?: OptionsAnimationPropertyConfig;
|
|
612
|
+}
|
|
613
|
+
|
|
614
|
+export interface OptionsAnimationPropertiesId extends OptionsAnimationProperties {
|
|
615
|
+ /**
|
|
616
|
+ * ID of the Top Bar we want to animate
|
|
617
|
+ */
|
|
618
|
+ id?: string;
|
|
619
|
+}
|
|
620
|
+
|
|
621
|
+export interface OptionsAnimationSeparate {
|
|
622
|
+ /**
|
|
623
|
+ * Configure animations for the top bar
|
|
624
|
+ */
|
|
625
|
+ topBar?: OptionsAnimationPropertiesId;
|
|
626
|
+ /**
|
|
627
|
+ * Configure animations for the bottom tabs
|
|
628
|
+ */
|
|
629
|
+ bottomTabs?: OptionsAnimationPropertiesId;
|
|
630
|
+ /**
|
|
631
|
+ * Configure animations for the content (Screen)
|
|
632
|
+ */
|
|
633
|
+ content?: OptionsAnimationPropertiesId;
|
|
634
|
+}
|
|
635
|
+
|
|
636
|
+export interface OptionsAnimations {
|
|
637
|
+ /**
|
|
638
|
+ * Configure the start app animation
|
|
639
|
+ */
|
|
640
|
+ startApp?: OptionsAnimationProperties;
|
|
641
|
+ /**
|
|
642
|
+ * Configure what animates when a screen is pushed
|
|
643
|
+ */
|
|
644
|
+ push?: OptionsAnimationSeparate;
|
|
645
|
+ /**
|
|
646
|
+ * Configure what animates when a screen is popped
|
|
647
|
+ */
|
|
648
|
+ pop?: OptionsAnimationSeparate;
|
|
649
|
+ /**
|
|
650
|
+ * Configure what animates when modal is shown
|
|
651
|
+ */
|
|
652
|
+ showModal?: OptionsAnimationProperties;
|
|
653
|
+ /**
|
|
654
|
+ * Configure what animates when modal is dismissed
|
|
655
|
+ */
|
|
656
|
+ dismissModal?: OptionsAnimationProperties;
|
|
657
|
+}
|
|
658
|
+
|
|
659
|
+export interface Options {
|
|
660
|
+ /**
|
|
661
|
+ * Configure the status bar
|
|
662
|
+ */
|
|
663
|
+ statusBar?: OptionsStatusBar;
|
|
664
|
+ /**
|
|
665
|
+ * Configure the layout
|
|
666
|
+ */
|
|
667
|
+ layout?: OptionsLayout;
|
|
668
|
+ /**
|
|
669
|
+ * Configure the presentation style of the modal
|
|
670
|
+ */
|
|
671
|
+ modalPresentationStyle?: OptionsModalPresentationStyle;
|
|
672
|
+ /**
|
|
673
|
+ * Configure the top bar
|
|
674
|
+ */
|
|
675
|
+ topBar?: OptionsTopBar;
|
|
676
|
+ /**
|
|
677
|
+ * Configure the bottom tabs
|
|
678
|
+ */
|
|
679
|
+ bottomTabs?: OptionsBottomTabs;
|
|
680
|
+ /**
|
|
681
|
+ * Configure the bottom tab associated to the screen
|
|
682
|
+ */
|
|
683
|
+ bottomTab?: OptionsBottomTab;
|
|
684
|
+ /**
|
|
685
|
+ * Configure the side menu
|
|
686
|
+ */
|
|
687
|
+ sideMenu?: OptionsSideMenu;
|
|
688
|
+ /**
|
|
689
|
+ * Configure the overlay
|
|
690
|
+ */
|
|
691
|
+ overlay?: OptionsOverlay;
|
|
692
|
+ /**
|
|
693
|
+ * Animation used for navigation commands that modify the layout
|
|
694
|
+ * hierarchy can be controlled in options.
|
|
695
|
+ *
|
|
696
|
+ * Animations can be modified per command and it's also possible
|
|
697
|
+ * to change the default animation for each command.
|
|
698
|
+ *
|
|
699
|
+ * Example:
|
|
700
|
+```js
|
|
701
|
+startApp: {
|
|
702
|
+ y: {
|
|
703
|
+ from: 1000,
|
|
704
|
+ to: 0,
|
|
705
|
+ duration: 500,
|
|
706
|
+ interpolation: 'accelerate',
|
|
707
|
+ },
|
|
708
|
+ alpha: {
|
|
709
|
+ from: 0,
|
|
710
|
+ to: 1,
|
|
711
|
+ duration: 400,
|
|
712
|
+ startDelay: 100,
|
|
713
|
+ interpolation: 'accelerate'
|
|
714
|
+ }
|
|
715
|
+}
|
|
716
|
+```
|
|
717
|
+ */
|
|
718
|
+ animations?: OptionsAnimations;
|
|
719
|
+ /**
|
|
720
|
+ * Preview configuration for Peek and Pop
|
|
721
|
+ * #### (iOS specific)
|
|
722
|
+ */
|
|
723
|
+ preview?: OptionsPreview;
|
|
724
|
+ /**
|
|
725
|
+ * Enable or disable swipe back to pop gesture
|
|
726
|
+ * #### (iOS specific)
|
|
727
|
+ * @default true
|
|
728
|
+ */
|
|
729
|
+ popGesture?: boolean;
|
|
730
|
+ /**
|
|
731
|
+ * Background image for the screen
|
|
732
|
+ * #### (iOS specific)
|
|
733
|
+ */
|
|
734
|
+ backgroundImage?: ImageRequireSource;
|
|
735
|
+ /**
|
|
736
|
+ * Background image for the Navigation View
|
|
737
|
+ * #### (iOS specific)
|
|
738
|
+ */
|
|
739
|
+ rootBackgroundImage?: ImageRequireSource;
|
|
740
|
+}
|