ソースを参照

fix optional values

yogevbd 6 年 前
コミット
6db17937a8
共有1 個のファイルを変更した11 個の追加11 個の削除を含む
  1. 11
    11
      lib/src/interfaces/Options.ts

+ 11
- 11
lib/src/interfaces/Options.ts ファイルの表示

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