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.
Files changed (49) hide show
  1. package/Libraries/Animated/nodes/AnimatedValue.js +0 -1
  2. package/Libraries/Components/Button.js +1 -1
  3. package/Libraries/Components/CheckBox/CheckBox.macos.js +8 -4
  4. package/Libraries/Components/Keyboard/Keyboard.js +2 -2
  5. package/Libraries/Components/Touchable/TouchableBounce.js +11 -22
  6. package/Libraries/Components/Touchable/TouchableHighlight.js +19 -30
  7. package/Libraries/Components/Touchable/TouchableOpacity.js +14 -29
  8. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +8 -18
  9. package/Libraries/Components/View/ReactNativeViewAttributes.js +8 -7
  10. package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
  11. package/Libraries/Components/View/View.js +8 -10
  12. package/Libraries/Components/View/ViewAccessibility.js +0 -1
  13. package/Libraries/Components/View/ViewPropTypes.js +1 -7
  14. package/Libraries/Core/ReactNativeVersion.js +5 -1
  15. package/Libraries/LogBox/Data/LogBoxData.js +18 -18
  16. package/Libraries/Text/Text/RCTTextView.m +7 -1
  17. package/Libraries/Types/RootTagTypes.js~merged +23 -0
  18. package/README.md +14 -39
  19. package/React/Base/RCTBridgeModule.h +1 -1
  20. package/React/Base/RCTVersion.m +5 -1
  21. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +1 -1
  22. package/React/CoreModules/RCTAlertController.m +8 -4
  23. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2126 -0
  24. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2682 -0
  25. package/React/Modules/RCTEventEmitter.h +2 -2
  26. package/React/Views/RCTViewManager.m +0 -7
  27. package/React-Core.podspec +0 -11
  28. package/ReactAndroid/gradle.properties +1 -1
  29. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
  30. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
  31. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +3 -1
  32. package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
  33. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +5 -1
  34. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +0 -8
  35. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +8 -8
  36. package/ReactAndroid/src/main/jni/third-party/libevent/event-config.h +339 -339
  37. package/ReactCommon/cxxreact/ReactNativeVersion.h +5 -1
  38. package/jest/preprocessor.js +7 -75
  39. package/local-cli/cli.js +0 -0
  40. package/package.json +8 -10
  41. package/scripts/react-native-xcode.sh +1 -1
  42. package/scripts/react_native_pods.rb +1 -1
  43. package/template/package.json +3 -1
  44. package/CHANGELOG.json +0 -500
  45. package/CHANGELOG.md +0 -240
  46. package/Libraries/.npmignore +0 -1
  47. package/ReactAndroid/.npmignore +0 -5
  48. package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
  49. package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
@@ -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: @"7134c06d2",
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:self.alertWindow]) {
40
- [self.alertWindow.rootViewController presentViewController:self animated:animated completion:completion];
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];