Browse Source

fix optional values

yogevbd 6 years ago
parent
commit
6db17937a8
1 changed files with 11 additions and 11 deletions
  1. 11
    11
      lib/src/interfaces/Options.ts

+ 11
- 11
lib/src/interfaces/Options.ts View File

42
    * Set the background color of the status bar
42
    * Set the background color of the status bar
43
    * #### (Android specific)
43
    * #### (Android specific)
44
    */
44
    */
45
-  backgroundColor: Color;
45
+  backgroundColor?: Color;
46
   /**
46
   /**
47
    * Draw screen behind the status bar
47
    * Draw screen behind the status bar
48
    * #### (Android specific)
48
    * #### (Android specific)
49
    */
49
    */
50
-  drawBehind: boolean;
50
+  drawBehind?: boolean;
51
 }
51
 }
52
 
52
 
53
 export interface OptionsLayout {
53
 export interface OptionsLayout {
63
    * Layout top margin
63
    * Layout top margin
64
    * #### (Android specific)
64
    * #### (Android specific)
65
    */
65
    */
66
-  topMargin: number;
66
+  topMargin?: number;
67
 }
67
 }
68
 
68
 
69
 export enum OptionsModalPresentationStyle {
69
 export enum OptionsModalPresentationStyle {
161
    * Weither the back button is visible or not
161
    * Weither the back button is visible or not
162
    * @default true
162
    * @default true
163
    */
163
    */
164
-  visible: boolean;
164
+  visible?: boolean;
165
   /**
165
   /**
166
    * Set the back button title
166
    * Set the back button title
167
    * #### (iOS specific)
167
    * #### (iOS specific)
168
    */
168
    */
169
-  title: string;
169
+  title?: string;
170
   /**
170
   /**
171
    * Show title or just the icon
171
    * Show title or just the icon
172
    * #### (iOS specific)
172
    * #### (iOS specific)
173
    */
173
    */
174
-  showTitle: boolean;
174
+  showTitle?: boolean;
175
   /**
175
   /**
176
    * Back button icon or text color
176
    * Back button icon or text color
177
    * #### (Android specific)
177
    * #### (Android specific)
289
    * @requires translucent: true
289
    * @requires translucent: true
290
    * @default 'default'
290
    * @default 'default'
291
    */
291
    */
292
-  barStyle: 'default' | 'black';
292
+  barStyle?: 'default' | 'black';
293
   /**
293
   /**
294
    * Allows the NavBar to be translucent (blurred)
294
    * Allows the NavBar to be translucent (blurred)
295
    * #### (iOS specific)
295
    * #### (iOS specific)
296
    * @requires transparent: false
296
    * @requires transparent: false
297
    */
297
    */
298
-  translucent: boolean;
298
+  translucent?: boolean;
299
   /**
299
   /**
300
    * Allows the NavBar to be transparent
300
    * Allows the NavBar to be transparent
301
    * #### (iOS specific)
301
    * #### (iOS specific)
302
    */
302
    */
303
-  transparent: boolean;
303
+  transparent?: boolean;
304
   /**
304
   /**
305
    * Disable the border on bottom of the navbar
305
    * Disable the border on bottom of the navbar
306
    * #### (iOS specific)
306
    * #### (iOS specific)
307
    * @default false
307
    * @default false
308
    */
308
    */
309
-  noBorder: boolean;
309
+  noBorder?: boolean;
310
   /**
310
   /**
311
    * Enable background blur
311
    * Enable background blur
312
    * #### (iOS specific)
312
    * #### (iOS specific)
313
    */
313
    */
314
-  blur: boolean;
314
+  blur?: boolean;
315
   /**
315
   /**
316
    * Show a UISearchBar in the Top Bar
316
    * Show a UISearchBar in the Top Bar
317
    * #### (iOS 11+ specific)
317
    * #### (iOS 11+ specific)