react-native 0.72.0-rc.3 → 0.72.0-rc.5

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 (56) hide show
  1. package/Libraries/AppDelegate/RCTAppDelegate.h +5 -0
  2. package/Libraries/AppDelegate/RCTAppDelegate.mm +30 -9
  3. package/Libraries/AppDelegate/RCTAppSetupUtils.h +8 -2
  4. package/Libraries/AppDelegate/RCTAppSetupUtils.mm +25 -1
  5. package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +16 -0
  6. package/Libraries/Components/TextInput/TextInput.d.ts +121 -86
  7. package/Libraries/Components/TextInput/TextInput.flow.js +121 -135
  8. package/Libraries/Components/TextInput/TextInput.js +121 -135
  9. package/Libraries/Core/ReactNativeVersion.js +1 -1
  10. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +0 -2
  11. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -13
  12. package/React/Base/RCTJavaScriptLoader.mm +11 -1
  13. package/React/Base/RCTRuntimeExecutorFromBridge.h +19 -0
  14. package/React/Base/RCTRuntimeExecutorFromBridge.mm +56 -0
  15. package/React/Base/RCTVersion.m +1 -1
  16. package/React/CxxBridge/RCTCxxBridge.mm +9 -4
  17. package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +0 -3
  18. package/React/Fabric/RCTSurfacePresenterBridgeAdapter.mm +1 -37
  19. package/React/React-RCTFabric.podspec +14 -1
  20. package/React-Core.podspec +6 -4
  21. package/ReactAndroid/build.gradle +4 -1
  22. package/ReactAndroid/cmake-utils/ReactNative-application.cmake +14 -1
  23. package/ReactAndroid/gradle.properties +1 -1
  24. package/ReactAndroid/hermes-engine/build.gradle +5 -0
  25. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +9 -0
  26. package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +7 -0
  27. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  28. package/ReactAndroid/src/main/jni/CMakeLists.txt +0 -1
  29. package/ReactCommon/React-Fabric.podspec +13 -23
  30. package/ReactCommon/ReactCommon.podspec +0 -4
  31. package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
  32. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  33. package/ReactCommon/react/debug/React-debug.podspec +36 -0
  34. package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +5 -0
  35. package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +66 -0
  36. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +2 -1
  37. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +2 -1
  38. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +1 -0
  39. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +2 -1
  40. package/ReactCommon/react/renderer/runtimescheduler/primitives.h +3 -15
  41. package/ReactCommon/react/renderer/scheduler/SchedulerToolbox.h +1 -1
  42. package/ReactCommon/react/utils/React-utils.podspec +57 -0
  43. package/package.json +9 -9
  44. package/scripts/cocoapods/__tests__/codegen_utils-test.rb +7 -2
  45. package/scripts/cocoapods/__tests__/new_architecture-test.rb +9 -3
  46. package/scripts/cocoapods/codegen_utils.rb +6 -0
  47. package/scripts/cocoapods/new_architecture.rb +13 -0
  48. package/scripts/react-native-xcode.sh +1 -1
  49. package/scripts/react_native_pods.rb +3 -0
  50. package/sdks/hermesc/linux64-bin/hermesc +0 -0
  51. package/sdks/hermesc/osx-bin/hermesc +0 -0
  52. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  53. package/template/android/app/build.gradle +0 -7
  54. package/template/ios/Podfile +1 -1
  55. package/template/package.json +5 -5
  56. package/types/experimental.d.ts +101 -0
@@ -51,7 +51,7 @@ target 'HelloWorld' do
51
51
  end
52
52
 
53
53
  post_install do |installer|
54
- # https://github.com/facebook/react-native/blob/main/scripts/react_native_pods.rb#L197-L202
54
+ # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
55
55
  react_native_post_install(
56
56
  installer,
57
57
  config[:reactNativePath],
@@ -11,14 +11,14 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.72.0-rc.3"
14
+ "react-native": "0.72.0-rc.5"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",
18
18
  "@babel/preset-env": "^7.20.0",
19
- "@babel/runtime": "^7.12.5",
20
- "@react-native/eslint-config": "^0.72.1",
21
- "@react-native/metro-config": "^0.72.5",
19
+ "@babel/runtime": "^7.20.0",
20
+ "@react-native/eslint-config": "^0.72.2",
21
+ "@react-native/metro-config": "^0.72.6",
22
22
  "@tsconfig/react-native": "^3.0.0",
23
23
  "@types/metro-config": "^0.76.3",
24
24
  "@types/react": "^18.0.24",
@@ -26,7 +26,7 @@
26
26
  "babel-jest": "^29.2.1",
27
27
  "eslint": "^8.19.0",
28
28
  "jest": "^29.2.1",
29
- "metro-react-native-babel-preset": "0.76.4",
29
+ "metro-react-native-babel-preset": "0.76.5",
30
30
  "prettier": "^2.4.1",
31
31
  "react-test-renderer": "18.2.0",
32
32
  "typescript": "4.8.4"
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ /**
11
+ * These are types for things that are present for New Architecture enabled apps
12
+ * which is currently considered experimental.
13
+ *
14
+ * To load the types declared here in an actual project, there are three ways.
15
+ *
16
+ * 1. If your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
17
+ * is to add `"react-native/types/experimental"` to the `"types"` array.
18
+ *
19
+ * 2. Alternatively, a specific import syntax can to be used from a typescript file.
20
+ * This module does not exist in reality, which is why the {} is important:
21
+ *
22
+ * ```ts
23
+ * import {} from 'react-native/types/experimental'
24
+ * ```
25
+ *
26
+ * 3. It is also possible to include it through a triple-slash reference:
27
+ *
28
+ * ```ts
29
+ * /// <reference types="react-native/types/experimental" />
30
+ * ```
31
+ *
32
+ * Either the import or the reference only needs to appear once, anywhere in the project.
33
+ */
34
+
35
+ import {DimensionValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
36
+
37
+ export {};
38
+
39
+ declare module '.' {
40
+ export interface FlexStyle {
41
+ /**
42
+ * Equivalent to `marginVertical`
43
+ */
44
+ marginBlock?: DimensionValue | undefined;
45
+
46
+ /**
47
+ * Equivalent to `marginBottom`
48
+ */
49
+ marginBlockEnd?: DimensionValue | undefined;
50
+
51
+ /**
52
+ * Equivalent to `marginTop`
53
+ */
54
+ marginBlockStart?: DimensionValue | undefined;
55
+
56
+ /**
57
+ * Equivalent to `marginHorizontal`
58
+ */
59
+ marginInline?: DimensionValue | undefined;
60
+
61
+ /**
62
+ * Equivalent to `marginEnd`
63
+ */
64
+ marginInlineEnd?: DimensionValue | undefined;
65
+
66
+ /**
67
+ * Equivalent to `marginStart`
68
+ */
69
+ marginInlineStart?: DimensionValue | undefined;
70
+
71
+ /**
72
+ * Equivalent to `paddingVertical`
73
+ */
74
+ paddingBlock?: DimensionValue | undefined;
75
+
76
+ /**
77
+ * Equivalent to `paddingBottom`
78
+ */
79
+ paddingBlockEnd?: DimensionValue | undefined;
80
+
81
+ /**
82
+ * Equivalent to `paddingTop`
83
+ */
84
+ paddingBlockStart?: DimensionValue | undefined;
85
+
86
+ /**
87
+ * Equivalent to `paddingHorizontal`
88
+ */
89
+ paddingInline?: DimensionValue | undefined;
90
+
91
+ /**
92
+ * Equivalent to `paddingEnd`
93
+ */
94
+ paddingInlineEnd?: DimensionValue | undefined;
95
+
96
+ /**
97
+ * Equivalent to `paddingStart`
98
+ */
99
+ paddingInlineStart?: DimensionValue | undefined;
100
+ }
101
+ }