react-native-macos 0.64.17 → 0.64.18
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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +8 -9
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
package/React/Base/RCTVersion.m
CHANGED
|
@@ -118,16 +118,15 @@ RCT_EXPORT_METHOD(showActionSheetWithOptions
|
|
|
118
118
|
UIColor *tintColor = [RCTConvert UIColor:options.tintColor() ? @(*options.tintColor()) : nil];
|
|
119
119
|
|
|
120
120
|
if (controller == nil) {
|
|
121
|
-
RCTLogError(@"Tried to display action sheet but there is no application window. options: %@", @{
|
|
122
|
-
@"title" : title,
|
|
123
|
-
@"message" : message,
|
|
124
|
-
@"options" : buttons,
|
|
121
|
+
RCTLogError(@"Tried to display action sheet but there is no application window. options: %@", @{ /* // [ TODO(macOS GH#774): nil check our dict values before inserting them or we may crash */
|
|
122
|
+
@"title" : title ?: [NSNull null],
|
|
123
|
+
@"message" : message ?: [NSNull null],
|
|
124
|
+
@"options" : buttons ?: [NSNull null],
|
|
125
125
|
@"cancelButtonIndex" : @(cancelButtonIndex),
|
|
126
|
-
@"destructiveButtonIndices" : destructiveButtonIndices,
|
|
127
|
-
@"anchor" : anchor,
|
|
128
|
-
@"tintColor" : tintColor,
|
|
129
|
-
|
|
130
|
-
});
|
|
126
|
+
@"destructiveButtonIndices" : destructiveButtonIndices ?: [NSNull null],
|
|
127
|
+
@"anchor" : anchor ?: [NSNull null],
|
|
128
|
+
@"tintColor" : tintColor ?: [NSNull null],
|
|
129
|
+
}); /* // TODO(macOS GH#774): nil check our dict values before inserting them or we may crash ] */
|
|
131
130
|
return;
|
|
132
131
|
}
|
|
133
132
|
#endif // TODO(macOS GH#774)
|
package/package.json
CHANGED