react-native-navigation 7.22.3-snapshot.1670 → 7.22.3-snapshot.1671

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,7 +85,7 @@ class OptionsProcessor {
85
85
  else {
86
86
  options[key] = react_native_1.DynamicColorIOS({
87
87
  light: this.colorService.toNativeColor(value.light),
88
- dark: this.colorService.toNativeColor(value.dark)
88
+ dark: this.colorService.toNativeColor(value.dark),
89
89
  });
90
90
  }
91
91
  }
@@ -95,28 +95,30 @@ class OptionsProcessor {
95
95
  }
96
96
  }
97
97
  processColorAndroid(key, value, options) {
98
- const newColorObj = { dark: 'NoColor', light: 'NoColor' };
99
- if (value === null) {
100
- options[key] = newColorObj;
101
- }
102
- else if (value instanceof Object) {
103
- if ('semantic' in value || 'resource_paths' in value) {
104
- options[key] = value;
105
- return;
98
+ if (value !== undefined) {
99
+ const newColorObj = { dark: 'NoColor', light: 'NoColor' };
100
+ if (value === null) {
101
+ options[key] = newColorObj;
106
102
  }
107
- else {
108
- for (let keyColor in value) {
109
- newColorObj[keyColor] = this.colorService.toNativeColor(value[keyColor]);
103
+ else if (value instanceof Object) {
104
+ if ('semantic' in value || 'resource_paths' in value) {
105
+ options[key] = value;
106
+ return;
107
+ }
108
+ else {
109
+ for (let keyColor in value) {
110
+ newColorObj[keyColor] = this.colorService.toNativeColor(value[keyColor]);
111
+ }
112
+ options[key] = newColorObj;
110
113
  }
114
+ }
115
+ else {
116
+ let parsedColor = this.colorService.toNativeColor(value);
117
+ newColorObj.light = parsedColor;
118
+ newColorObj.dark = parsedColor;
111
119
  options[key] = newColorObj;
112
120
  }
113
121
  }
114
- else {
115
- let parsedColor = this.colorService.toNativeColor(value);
116
- newColorObj.light = parsedColor;
117
- newColorObj.dark = parsedColor;
118
- options[key] = newColorObj;
119
- }
120
122
  }
121
123
  processWithRegisteredProcessor(key, value, options, path, commandName, passProps) {
122
124
  const registeredProcessors = this.optionProcessorsRegistry.getProcessors(path);
@@ -136,7 +136,7 @@ export class OptionsProcessor {
136
136
  } else {
137
137
  options[key] = DynamicColorIOS({
138
138
  light: this.colorService.toNativeColor(value.light) as ColorValue,
139
- dark: this.colorService.toNativeColor(value.dark) as ColorValue
139
+ dark: this.colorService.toNativeColor(value.dark) as ColorValue,
140
140
  });
141
141
  }
142
142
  } else {
@@ -146,24 +146,26 @@ export class OptionsProcessor {
146
146
  }
147
147
 
148
148
  private processColorAndroid(key: string, value: any, options: Record<string, any>) {
149
- const newColorObj: Record<string, any> = { dark: 'NoColor', light: 'NoColor' };
150
- if (value === null) {
151
- options[key] = newColorObj;
152
- } else if (value instanceof Object) {
153
- if ('semantic' in value || 'resource_paths' in value) {
154
- options[key] = value;
155
- return;
156
- } else {
157
- for (let keyColor in value) {
158
- newColorObj[keyColor] = this.colorService.toNativeColor(value[keyColor]);
149
+ if (value !== undefined) {
150
+ const newColorObj: Record<string, any> = { dark: 'NoColor', light: 'NoColor' };
151
+ if (value === null) {
152
+ options[key] = newColorObj;
153
+ } else if (value instanceof Object) {
154
+ if ('semantic' in value || 'resource_paths' in value) {
155
+ options[key] = value;
156
+ return;
157
+ } else {
158
+ for (let keyColor in value) {
159
+ newColorObj[keyColor] = this.colorService.toNativeColor(value[keyColor]);
160
+ }
161
+ options[key] = newColorObj;
159
162
  }
163
+ } else {
164
+ let parsedColor = this.colorService.toNativeColor(value);
165
+ newColorObj.light = parsedColor;
166
+ newColorObj.dark = parsedColor;
160
167
  options[key] = newColorObj;
161
168
  }
162
- } else {
163
- let parsedColor = this.colorService.toNativeColor(value);
164
- newColorObj.light = parsedColor;
165
- newColorObj.dark = parsedColor;
166
- options[key] = newColorObj;
167
169
  }
168
170
  }
169
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "7.22.3-snapshot.1670",
3
+ "version": "7.22.3-snapshot.1671",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,