react-native-zyprotectabio-module 1.1.13 → 1.1.14
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.
|
@@ -65,9 +65,17 @@ RCT_EXPORT_METHOD(onZyBioCapture:(NSDictionary *)opcional
|
|
|
65
65
|
if (value == nil || value == [NSNull null]) {
|
|
66
66
|
return defaultValue;
|
|
67
67
|
}
|
|
68
|
+
|
|
68
69
|
if ([value isKindOfClass:[NSNumber class]]) {
|
|
69
|
-
|
|
70
|
+
NSNumber *number = (NSNumber *)value;
|
|
71
|
+
|
|
72
|
+
if ([number integerValue] == 0) {
|
|
73
|
+
return defaultValue;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return number;
|
|
70
77
|
}
|
|
78
|
+
|
|
71
79
|
return defaultValue;
|
|
72
80
|
}
|
|
73
81
|
|
package/package.json
CHANGED