react-native-macos 0.0.0-7134c06d2 → 0.0.0-7193ea003
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/Animated/nodes/AnimatedValue.js +0 -1
- package/Libraries/Components/Button.js +1 -1
- package/Libraries/Components/CheckBox/CheckBox.macos.js +8 -4
- package/Libraries/Components/Keyboard/Keyboard.js +2 -2
- package/Libraries/Components/Touchable/TouchableBounce.js +11 -22
- package/Libraries/Components/Touchable/TouchableHighlight.js +19 -30
- package/Libraries/Components/Touchable/TouchableOpacity.js +14 -29
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +8 -18
- package/Libraries/Components/View/ReactNativeViewAttributes.js +8 -7
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
- package/Libraries/Components/View/View.js +8 -10
- package/Libraries/Components/View/ViewAccessibility.js +0 -1
- package/Libraries/Components/View/ViewPropTypes.js +1 -7
- package/Libraries/Core/ReactNativeVersion.js +5 -1
- package/Libraries/LogBox/Data/LogBoxData.js +18 -18
- package/Libraries/Text/Text/RCTTextView.m +7 -1
- package/Libraries/Types/RootTagTypes.js~merged +23 -0
- package/README.md +14 -39
- package/React/Base/RCTBridgeModule.h +1 -1
- package/React/Base/RCTVersion.m +5 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +1 -1
- package/React/CoreModules/RCTAlertController.m +8 -4
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2126 -0
- package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2682 -0
- package/React/Modules/RCTEventEmitter.h +2 -2
- package/React/Views/RCTViewManager.m +0 -7
- package/React-Core.podspec +0 -11
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +0 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +8 -8
- package/ReactAndroid/src/main/jni/third-party/libevent/event-config.h +339 -339
- package/ReactCommon/cxxreact/ReactNativeVersion.h +5 -1
- package/jest/preprocessor.js +7 -75
- package/local-cli/cli.js +0 -0
- package/package.json +8 -10
- package/scripts/react-native-xcode.sh +1 -1
- package/scripts/react_native_pods.rb +1 -1
- package/template/package.json +3 -1
- package/CHANGELOG.json +0 -500
- package/CHANGELOG.md +0 -240
- package/Libraries/.npmignore +0 -1
- package/ReactAndroid/.npmignore +0 -5
- package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
- package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
package/React/Base/RCTVersion.m
CHANGED
|
@@ -15,6 +15,10 @@ NSString* const RCTVersionPatch = @"patch";
|
|
|
15
15
|
NSString* const RCTVersionPrerelease = @"prerelease";
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
// [TODO(macOS GH#944)
|
|
19
|
+
// Note: Be careful not to override these version numbers
|
|
20
|
+
// when we merge upstream stable branches into main
|
|
21
|
+
// TODO(macOS GH#944)]
|
|
18
22
|
NSDictionary* RCTGetReactNativeVersion(void)
|
|
19
23
|
{
|
|
20
24
|
static NSDictionary* __rnVersion;
|
|
@@ -24,7 +28,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
|
|
|
24
28
|
RCTVersionMajor: @(0),
|
|
25
29
|
RCTVersionMinor: @(0),
|
|
26
30
|
RCTVersionPatch: @(0),
|
|
27
|
-
RCTVersionPrerelease: @"
|
|
31
|
+
RCTVersionPrerelease: @"7193ea003",
|
|
28
32
|
};
|
|
29
33
|
});
|
|
30
34
|
return __rnVersion;
|
|
@@ -62,7 +62,7 @@ RCT_NOT_IMPLEMENTED(-(nullable instancetype)initWithCoder : (NSCoder *)coder)
|
|
|
62
62
|
[self _updateViews];
|
|
63
63
|
|
|
64
64
|
// For backward compatibility with RCTRootView, set a color here instead of transparent (OS default).
|
|
65
|
-
self.backgroundColor = [RCTUIColor whiteColor];
|
|
65
|
+
self.backgroundColor = [RCTUIColor whiteColor]; // TODO(macOS GH#774)
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
return self;
|
|
@@ -32,12 +32,16 @@
|
|
|
32
32
|
|
|
33
33
|
- (void)show:(BOOL)animated completion:(void (^)(void))completion
|
|
34
34
|
{
|
|
35
|
-
[self.alertWindow makeKeyAndVisible];
|
|
36
|
-
|
|
37
35
|
// [TODO(macOS GH#774)
|
|
36
|
+
// Call self.alertWindow to ensure that it gets populated
|
|
37
|
+
UIWindow *alertWindow = self.alertWindow;
|
|
38
|
+
|
|
38
39
|
// If the window is tracked by our application then it will show the alert
|
|
39
|
-
if ([[[UIApplication sharedApplication] windows] containsObject:
|
|
40
|
-
|
|
40
|
+
if ([[[UIApplication sharedApplication] windows] containsObject:alertWindow]) {
|
|
41
|
+
// On iOS 14, makeKeyAndVisible should only be called if alertWindow is tracked by the application.
|
|
42
|
+
// Later versions of iOS appear to already do this check for us behind the scenes.
|
|
43
|
+
[alertWindow makeKeyAndVisible];
|
|
44
|
+
[alertWindow.rootViewController presentViewController:self animated:animated completion:completion];
|
|
41
45
|
} else {
|
|
42
46
|
// When using Scenes, we must present the alert from a view controller associated with a window in the Scene. A fresh window (i.e. _alertWindow) cannot show the alert.
|
|
43
47
|
[RCTPresentedViewController() presentViewController:self animated:animated completion:completion];
|