react-native-windows 0.71.22 → 0.71.24

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.
@@ -51,6 +51,28 @@
51
51
  INTERNAL_REACT_RECOMPOSER_4( \
52
52
  (__VA_ARGS__, INTERNAL_REACT_MODULE_3_ARGS, INTERNAL_REACT_MODULE_2_ARGS, INTERNAL_REACT_MODULE_1_ARG, ))
53
53
 
54
+ // Another version of REACT_MODULE but does not do auto registration
55
+ #define INTERNAL_REACT_MODULE_NOREG_3_ARGS(moduleStruct, moduleName, eventEmitterName) \
56
+ struct moduleStruct; \
57
+ template <class TRegistry> \
58
+ constexpr void GetReactModuleInfo(moduleStruct *, TRegistry &registry) noexcept { \
59
+ registry.RegisterModule( \
60
+ moduleName, eventEmitterName, winrt::Microsoft::ReactNative::ReactAttributeId<__COUNTER__>{}); \
61
+ }
62
+
63
+ #define INTERNAL_REACT_MODULE_NOREG_2_ARGS(moduleStruct, moduleName) \
64
+ INTERNAL_REACT_MODULE_NOREG_3_ARGS(moduleStruct, moduleName, L"")
65
+
66
+ #define INTERNAL_REACT_MODULE_NOREG_1_ARG(moduleStruct) \
67
+ INTERNAL_REACT_MODULE_NOREG_2_ARGS(moduleStruct, L## #moduleStruct)
68
+
69
+ #define INTERNAL_REACT_MODULE_NOREG(...) \
70
+ INTERNAL_REACT_RECOMPOSER_4( \
71
+ (__VA_ARGS__, \
72
+ INTERNAL_REACT_MODULE_NOREG_3_ARGS, \
73
+ INTERNAL_REACT_MODULE_NOREG_2_ARGS, \
74
+ INTERNAL_REACT_MODULE_NOREG_1_ARG, ))
75
+
54
76
  // Provide meta data information about struct member.
55
77
  // For each member with a 'custom attribute' macro we create a static method to provide meta data.
56
78
  // The member Id is generated as a ReactMemberId<__COUNTER__> type.
@@ -30,6 +30,11 @@
30
30
  #define REACT_MODULE(/* moduleStruct, [opt] moduleName, [opt] eventEmitterName */...) \
31
31
  INTERNAL_REACT_MODULE(__VA_ARGS__)(__VA_ARGS__)
32
32
 
33
+ // REACT_MODULE_NOREG is REACT_MODULE without auto registration
34
+ // they have the same arguments
35
+ #define REACT_MODULE_NOREG(/* moduleStruct, [opt] moduleName, [opt] eventEmitterName */...) \
36
+ INTERNAL_REACT_MODULE_NOREG(__VA_ARGS__)(__VA_ARGS__)
37
+
33
38
  // REACT_INIT(method)
34
39
  // Arguments:
35
40
  // - method (required) - the method name the macro is attached to.
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.71.22</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.71.24</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>71</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>22</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>24</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>de9a38d6b4e1c13b727f9e0fda22615d0f28ff2c</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>08c3acfdfe4d3c66f15e24ef3dc795dcf39202c5</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.71.22",
3
+ "version": "0.71.24",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@react-native-community/cli": "10.2.4",
27
27
  "@react-native-community/cli-platform-android": "10.2.0",
28
28
  "@react-native-community/cli-platform-ios": "10.2.4",
29
- "@react-native-windows/cli": "0.71.11",
29
+ "@react-native-windows/cli": "0.71.12",
30
30
  "@react-native/assets": "1.0.0",
31
31
  "@react-native/normalize-color": "2.1.0",
32
32
  "@react-native/polyfills": "2.0.0",
@@ -58,7 +58,7 @@
58
58
  "ws": "^6.2.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@react-native-windows/codegen": "0.71.5",
61
+ "@react-native-windows/codegen": "0.71.6",
62
62
  "@rnw-scripts/babel-react-native-config": "0.0.0",
63
63
  "@rnw-scripts/eslint-config": "1.1.14",
64
64
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.0",