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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +1 -0
- package/Libraries/Text/RCTTextAttributes.h +2 -0
- package/Libraries/Text/RCTTextAttributes.m +9 -1
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +37 -0
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +82 -0
- package/Libraries/Text/Text.d.ts +17 -0
- package/Libraries/Text/TextNativeComponent.js +1 -0
- package/Libraries/Text/TextProps.js +17 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.cpp +42 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.h +64 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.js +41 -0
- package/Libraries/WebPerformance/PerformanceObserver.js +223 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/CoreModulesPlugins.h +1 -0
- package/React/CoreModules/CoreModulesPlugins.mm +1 -0
- package/ReactAndroid/build.gradle +7 -5
- package/ReactAndroid/cmake-utils/ReactNative-application.cmake +1 -1
- package/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +12 -3
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/hermes-engine/build.gradle +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +3 -1
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.cpp +15 -6
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.h +6 -1
- package/ReactCommon/ReactCommon.podspec +9 -2
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +6 -0
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +1 -0
- package/ReactCommon/react/renderer/attributedstring/conversions.h +78 -0
- package/ReactCommon/react/renderer/attributedstring/primitives.h +21 -0
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +6 -0
- package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +3 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +78 -9
- package/ReactCommon/yoga/yoga/Yoga.cpp +19 -10
- package/index.js +16 -11
- package/package.json +7 -6
- package/scripts/cocoapods/codegen_utils.rb +12 -11
- package/scripts/cocoapods/jsengine.rb +28 -3
- package/scripts/cocoapods/new_architecture.rb +1 -0
- package/scripts/cocoapods/utils.rb +0 -12
- package/scripts/codegen/generate-specs-cli-executor.js +4 -4
- package/scripts/hermes/hermes-utils.js +3 -7
- package/scripts/react_native_pods.rb +5 -3
- package/sdks/hermes-engine/hermes-engine.podspec +8 -3
- package/sdks/hermes-engine/utils/build-hermesc-xcode.sh +1 -1
- package/sdks/hermes-engine/utils/copy-hermes-xcode.sh +12 -4
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/App.tsx +1 -1
- package/template/Gemfile +1 -1
- package/template/android/app/build.gradle +2 -2
- package/template/android/build.gradle +3 -3
- package/template/ios/HelloWorld/AppDelegate.h +1 -1
- package/template/package.json +4 -2
- package/types/index.d.ts +0 -1
- package/Libraries/Image/ImagePickerIOS.d.ts +0 -48
- package/Libraries/Image/ImagePickerIOS.js +0 -103
- package/Libraries/Image/NativeImagePickerIOS.js +0 -39
- package/Libraries/Performance/PerformanceObserver.js +0 -124
- 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
|