react-native 0.71.0-rc.0 → 0.71.0-rc.2

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 (61) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +1 -0
  3. package/Libraries/Text/RCTTextAttributes.h +2 -0
  4. package/Libraries/Text/RCTTextAttributes.m +9 -1
  5. package/Libraries/Text/Text/RCTDynamicTypeRamp.h +37 -0
  6. package/Libraries/Text/Text/RCTDynamicTypeRamp.m +82 -0
  7. package/Libraries/Text/Text.d.ts +17 -0
  8. package/Libraries/Text/TextNativeComponent.js +1 -0
  9. package/Libraries/Text/TextProps.js +17 -0
  10. package/Libraries/WebPerformance/NativePerformanceObserver.cpp +42 -0
  11. package/Libraries/WebPerformance/NativePerformanceObserver.h +64 -0
  12. package/Libraries/WebPerformance/NativePerformanceObserver.js +41 -0
  13. package/Libraries/WebPerformance/PerformanceObserver.js +223 -0
  14. package/React/Base/RCTVersion.m +1 -1
  15. package/React/CoreModules/CoreModulesPlugins.h +1 -0
  16. package/React/CoreModules/CoreModulesPlugins.mm +1 -0
  17. package/ReactAndroid/build.gradle +7 -5
  18. package/ReactAndroid/cmake-utils/ReactNative-application.cmake +1 -1
  19. package/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +12 -3
  20. package/ReactAndroid/gradle.properties +1 -1
  21. package/ReactAndroid/hermes-engine/build.gradle +13 -0
  22. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  23. package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +3 -1
  24. package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.cpp +15 -6
  25. package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.h +6 -1
  26. package/ReactCommon/ReactCommon.podspec +9 -2
  27. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  28. package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +6 -0
  29. package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +1 -0
  30. package/ReactCommon/react/renderer/attributedstring/conversions.h +78 -0
  31. package/ReactCommon/react/renderer/attributedstring/primitives.h +21 -0
  32. package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +6 -0
  33. package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +3 -0
  34. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +78 -9
  35. package/ReactCommon/yoga/yoga/Yoga.cpp +19 -10
  36. package/index.js +16 -11
  37. package/package.json +7 -6
  38. package/scripts/cocoapods/codegen_utils.rb +12 -11
  39. package/scripts/cocoapods/jsengine.rb +28 -3
  40. package/scripts/cocoapods/new_architecture.rb +1 -0
  41. package/scripts/cocoapods/utils.rb +0 -12
  42. package/scripts/codegen/generate-specs-cli-executor.js +4 -4
  43. package/scripts/hermes/hermes-utils.js +3 -7
  44. package/scripts/react_native_pods.rb +5 -3
  45. package/sdks/hermes-engine/hermes-engine.podspec +8 -3
  46. package/sdks/hermes-engine/utils/build-hermesc-xcode.sh +1 -1
  47. package/sdks/hermes-engine/utils/copy-hermes-xcode.sh +12 -4
  48. package/sdks/hermesc/osx-bin/hermesc +0 -0
  49. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  50. package/template/App.tsx +1 -1
  51. package/template/Gemfile +1 -1
  52. package/template/android/app/build.gradle +2 -2
  53. package/template/android/build.gradle +3 -3
  54. package/template/ios/HelloWorld/AppDelegate.h +1 -1
  55. package/template/package.json +4 -2
  56. package/types/index.d.ts +0 -1
  57. package/Libraries/Image/ImagePickerIOS.d.ts +0 -48
  58. package/Libraries/Image/ImagePickerIOS.js +0 -103
  59. package/Libraries/Image/NativeImagePickerIOS.js +0 -39
  60. package/Libraries/Performance/PerformanceObserver.js +0 -124
  61. package/ReactCommon/React-bridging.podspec +0 -43
@@ -1,124 +0,0 @@
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
- * @flow strict
9
- */
10
-
11
- 'use strict';
12
-
13
- export type Timestamp = number;
14
- export type PerformanceEntryType = 'event';
15
-
16
- export class PerformanceEntry {
17
- name: string;
18
- entryType: PerformanceEntryType;
19
- startTime: Timestamp;
20
- duration: number;
21
-
22
- // For "event" entries only:
23
- processingStart: ?Timestamp;
24
- processingEnd: ?Timestamp;
25
- interactionId: ?number;
26
-
27
- // $FlowIgnore: Flow(unclear-type)
28
- toJSON(): Object {
29
- return {
30
- name: this.name,
31
- entryType: this.entryType,
32
- startTime: this.startTime,
33
- duration: this.duration,
34
- };
35
- }
36
- }
37
-
38
- export type PerformanceEntryList = $ReadOnlyArray<PerformanceEntry>;
39
-
40
- export class PerformanceObserverEntryList {
41
- _entries: PerformanceEntryList;
42
-
43
- constructor(entries: PerformanceEntryList) {
44
- this._entries = entries;
45
- }
46
-
47
- getEntries(): PerformanceEntryList {
48
- return this._entries;
49
- }
50
-
51
- getEntriesByType(type: PerformanceEntryType): PerformanceEntryList {
52
- return this._entries.filter(entry => entry.entryType === type);
53
- }
54
-
55
- getEntriesByName(
56
- name: string,
57
- type?: PerformanceEntryType,
58
- ): PerformanceEntryList {
59
- if (type === undefined) {
60
- return this._entries.filter(entry => entry.name === name);
61
- } else {
62
- return this._entries.filter(
63
- entry => entry.name === name && entry.entryType === type,
64
- );
65
- }
66
- }
67
- }
68
-
69
- export type PerformanceObserverCallback = (
70
- list: PerformanceObserverEntryList,
71
- observer: PerformanceObserver,
72
- ) => void;
73
-
74
- export type PerformanceObserverInit =
75
- | {
76
- entryTypes: PerformanceEntryType[],
77
- buffered?: boolean,
78
- }
79
- | {
80
- type: PerformanceEntryType,
81
- buffered?: boolean,
82
- };
83
-
84
- /**
85
- * Implementation of the PerformanceObserver interface for RN,
86
- * corresponding to the standard in https://www.w3.org/TR/performance-timeline/
87
- *
88
- * @example
89
- * const observer = new PerformanceObserver((list, _observer) => {
90
- * const entries = list.getEntries();
91
- * entries.forEach(entry => {
92
- * reportEvent({
93
- * eventName: entry.name,
94
- * startTime: entry.startTime,
95
- * endTime: entry.startTime + entry.duration,
96
- * processingStart: entry.processingStart,
97
- * processingEnd: entry.processingEnd,
98
- * interactionId: entry.interactionId,
99
- * });
100
- * });
101
- * });
102
- * observer.observe({ type: "event" });
103
- */
104
- export default class PerformanceObserver {
105
- _callback: PerformanceObserverCallback;
106
-
107
- constructor(callback: PerformanceObserverCallback) {
108
- this._callback = callback;
109
- }
110
-
111
- observe(options: PerformanceObserverInit) {
112
- console.log('PerformanceObserver: started observing');
113
- }
114
-
115
- disconnect(): void {
116
- console.log('PerformanceObserver: stopped observing');
117
- }
118
-
119
- takeRecords(): PerformanceEntryList {
120
- return [];
121
- }
122
-
123
- static supportedEntryTypes: PerformanceEntryType[] = ['event'];
124
- }
@@ -1,43 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- require "json"
7
-
8
- package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
9
- version = package['version']
10
-
11
- source = { :git => 'https://github.com/facebook/react-native.git' }
12
- if version == '1000.0.0'
13
- # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
- source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
- else
16
- source[:tag] = "v#{version}"
17
- end
18
-
19
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-gnu-zero-variadic-macro-arguments'
20
- folly_version = '2021.07.22.00'
21
-
22
- Pod::Spec.new do |s|
23
- s.name = "React-bridging"
24
- s.version = version
25
- s.summary = "-" # TODO
26
- s.homepage = "https://reactnative.dev/"
27
- s.license = package["license"]
28
- s.author = "Facebook, Inc. and its affiliates"
29
- s.platforms = { :ios => "12.4" }
30
- s.source = source
31
- s.source_files = "react/bridging/**/*.{cpp,h}"
32
- s.exclude_files = "react/bridging/tests"
33
- s.header_dir = "react/bridging"
34
- s.header_mappings_dir = "."
35
- s.compiler_flags = folly_compiler_flags
36
- s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\"",
37
- "USE_HEADERMAP" => "YES",
38
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
39
- "GCC_WARN_PEDANTIC" => "YES" }
40
-
41
- s.dependency "RCT-Folly", folly_version
42
- s.dependency "React-jsi", version
43
- end