react-native 0.84.0-nightly-20251106-de5141a3d → 0.84.0-nightly-20251107-f8198f662
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/Animated/createAnimatedComponent.js +1 -0
- package/Libraries/Blob/RCTBlobManager.mm +1 -4
- package/Libraries/Blob/RCTFileReaderModule.mm +1 -4
- package/Libraries/Components/Button.js +0 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/RCTBundleAssetImageLoader.mm +1 -4
- package/Libraries/Image/RCTGIFImageDecoder.mm +1 -4
- package/Libraries/Image/RCTImageEditingManager.mm +1 -4
- package/Libraries/Image/RCTImageLoader.mm +1 -4
- package/Libraries/Image/RCTImageStoreManager.mm +1 -4
- package/Libraries/Image/RCTImageViewManager.mm +1 -4
- package/Libraries/Image/RCTLocalAssetImageLoader.mm +1 -4
- package/Libraries/LinkingIOS/RCTLinkingManager.mm +1 -4
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +1 -4
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +1 -4
- package/Libraries/Network/RCTDataRequestHandler.mm +1 -4
- package/Libraries/Network/RCTFileRequestHandler.mm +1 -4
- package/Libraries/Network/RCTHTTPRequestHandler.mm +1 -4
- package/Libraries/Network/RCTNetworking.mm +1 -4
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +1 -4
- package/Libraries/Settings/RCTSettingsManager.mm +1 -4
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +2 -2
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +4 -2
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.mm +1 -4
- package/Libraries/Text/RawText/RCTRawTextViewManager.mm +1 -4
- package/Libraries/Text/Text/RCTTextViewManager.mm +1 -4
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.mm +1 -4
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.mm +1 -4
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.mm +1 -4
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.mm +1 -4
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.mm +1 -4
- package/Libraries/Vibration/RCTVibration.mm +1 -4
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTAccessibilityManager.mm +1 -4
- package/React/CoreModules/RCTActionSheetManager.mm +1 -4
- package/React/CoreModules/RCTAlertManager.mm +1 -4
- package/React/CoreModules/RCTAppState.mm +1 -4
- package/React/CoreModules/RCTAppearance.mm +1 -4
- package/React/CoreModules/RCTClipboard.mm +1 -4
- package/React/CoreModules/RCTDevLoadingView.mm +1 -4
- package/React/CoreModules/RCTDevMenu.mm +1 -4
- package/React/CoreModules/RCTDevSettings.mm +1 -4
- package/React/CoreModules/RCTDevToolsRuntimeSettingsModule.mm +1 -5
- package/React/CoreModules/RCTDeviceInfo.mm +1 -4
- package/React/CoreModules/RCTEventDispatcher.mm +1 -4
- package/React/CoreModules/RCTExceptionsManager.mm +1 -4
- package/React/CoreModules/RCTI18nManager.mm +1 -4
- package/React/CoreModules/RCTKeyboardObserver.mm +1 -4
- package/React/CoreModules/RCTLogBox.mm +1 -4
- package/React/CoreModules/RCTPerfMonitor.mm +1 -4
- package/React/CoreModules/RCTPlatform.mm +1 -4
- package/React/CoreModules/RCTRedBox.mm +1 -4
- package/React/CoreModules/RCTSourceCode.mm +1 -4
- package/React/CoreModules/RCTStatusBarManager.mm +1 -4
- package/React/CoreModules/RCTTiming.mm +1 -4
- package/React/CoreModules/RCTWebSocketModule.mm +1 -4
- package/React/Modules/RCTUIManager.mm +1 -4
- package/React/Views/RCTActivityIndicatorViewManager.m +1 -4
- package/React/Views/RCTDebuggingOverlayManager.m +1 -4
- package/React/Views/RCTModalHostViewManager.m +1 -4
- package/React/Views/RCTModalManager.m +1 -4
- package/React/Views/RCTSwitchManager.m +1 -4
- package/React/Views/RCTViewManager.m +1 -4
- package/React/Views/RefreshControl/RCTRefreshControlManager.m +1 -4
- package/React/Views/SafeAreaView/RCTSafeAreaViewManager.m +1 -4
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +1 -4
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -4
- package/ReactAndroid/api/ReactAndroid.api +0 -13
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackageTurboModuleManagerDelegate.kt +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +2 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleHolder.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.kt +1 -16
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/TurboModuleManager.kt +2 -35
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VirtualViewContainerStateExperimental.kt +7 -0
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +3 -13
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +1 -4
- package/ReactAndroid/src/main/jni/react/jni/CxxModuleWrapperBase.h +0 -24
- package/ReactAndroid/src/main/jni/react/jni/JavaModuleWrapper.cpp +0 -1
- package/ReactAndroid/src/main/jni/react/jni/ModuleRegistryBuilder.cpp +1 -29
- package/ReactAndroid/src/main/jni/react/jni/ModuleRegistryBuilder.h +1 -2
- package/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp +0 -2
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.cpp +2 -1
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/TurboModuleManager.cpp +1 -35
- package/ReactCommon/cxxreact/ReactMarker.cpp +0 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/jsiexecutor/CMakeLists.txt +3 -1
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +2 -0
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +0 -40
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +1 -6
- package/ReactCommon/jsinspector-modern/ConsoleTask.cpp +27 -0
- package/ReactCommon/jsinspector-modern/ConsoleTask.h +38 -0
- package/ReactCommon/jsinspector-modern/ConsoleTaskContext.cpp +46 -0
- package/ReactCommon/jsinspector-modern/ConsoleTaskContext.h +102 -0
- package/ReactCommon/jsinspector-modern/ConsoleTaskOrchestrator.cpp +55 -0
- package/ReactCommon/jsinspector-modern/ConsoleTaskOrchestrator.h +48 -0
- package/ReactCommon/jsinspector-modern/RuntimeAgent.h +1 -1
- package/ReactCommon/jsinspector-modern/RuntimeTarget.cpp +12 -0
- package/ReactCommon/jsinspector-modern/RuntimeTarget.h +16 -13
- package/ReactCommon/jsinspector-modern/RuntimeTargetConsole.cpp +106 -1
- package/ReactCommon/jsinspector-modern/tests/ConsoleCreateTaskTest.cpp +131 -0
- package/ReactCommon/jsinspector-modern/tests/ReactInstanceIntegrationTest.cpp +1 -0
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +13 -2
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.h +6 -2
- package/ReactCommon/jsinspector-modern/tracing/TargetTracingAgent.h +5 -0
- package/ReactCommon/jsitooling/react/runtime/JSRuntimeBindings.cpp +54 -0
- package/ReactCommon/jsitooling/react/runtime/JSRuntimeBindings.h +20 -0
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleTurboModule.mm +1 -4
- package/ReactCommon/react/performance/timeline/CMakeLists.txt +1 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryReporter.cpp +9 -1
- package/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +1 -0
- package/ReactCommon/react/renderer/animated/NativeAnimatedNodesManager.cpp +21 -16
- package/ReactCommon/react/renderer/animated/NativeAnimatedNodesManagerProvider.cpp +9 -5
- package/ReactCommon/react/renderer/animationbackend/AnimationBackend.cpp +67 -32
- package/ReactCommon/react/renderer/animationbackend/AnimationBackend.h +14 -2
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +1 -1
- package/ReactCommon/react/renderer/core/EventQueueProcessor.cpp +3 -3
- package/ReactCommon/react/runtime/ReactInstance.cpp +8 -6
- package/ReactCommon/react/runtime/ReactInstance.h +0 -1
- package/flow/bom.js.flow +7 -0
- package/package.json +8 -8
- package/scripts/ios-configure-glog.sh +6 -1
- package/types_generated/Libraries/Components/Button.d.ts +1 -4
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CxxModuleWrapper.kt +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CxxModuleWrapperBase.kt +0 -61
- package/ReactAndroid/src/main/jni/react/jni/CxxModuleWrapper.h +0 -37
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
namespace facebook::react {
|
|
12
12
|
|
|
13
|
+
UIManagerNativeAnimatedDelegateBackendImpl::
|
|
14
|
+
UIManagerNativeAnimatedDelegateBackendImpl(
|
|
15
|
+
std::weak_ptr<UIManagerAnimationBackend> animationBackend)
|
|
16
|
+
: animationBackend_(std::move(animationBackend)) {}
|
|
17
|
+
|
|
18
|
+
void UIManagerNativeAnimatedDelegateBackendImpl::runAnimationFrame() {
|
|
19
|
+
if (auto animationBackendStrong = animationBackend_.lock()) {
|
|
20
|
+
animationBackendStrong->onAnimationFrame(
|
|
21
|
+
std::chrono::steady_clock::now().time_since_epoch().count() / 1000);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
static inline Props::Shared cloneProps(
|
|
14
26
|
AnimatedProps& animatedProps,
|
|
15
27
|
const ShadowNode& shadowNode) {
|
|
@@ -87,19 +99,23 @@ AnimationBackend::AnimationBackend(
|
|
|
87
99
|
|
|
88
100
|
void AnimationBackend::onAnimationFrame(double timestamp) {
|
|
89
101
|
std::unordered_map<Tag, AnimatedProps> updates;
|
|
90
|
-
std::unordered_set<const ShadowNodeFamily
|
|
102
|
+
std::unordered_map<SurfaceId, std::unordered_set<const ShadowNodeFamily*>>
|
|
103
|
+
surfaceToFamilies;
|
|
91
104
|
bool hasAnyLayoutUpdates = false;
|
|
92
105
|
for (auto& callback : callbacks) {
|
|
93
106
|
auto muatations = callback(static_cast<float>(timestamp));
|
|
94
107
|
for (auto& mutation : muatations) {
|
|
95
108
|
hasAnyLayoutUpdates |= mutationHasLayoutUpdates(mutation);
|
|
96
|
-
|
|
109
|
+
const auto family = mutation.family;
|
|
110
|
+
if (family != nullptr) {
|
|
111
|
+
surfaceToFamilies[family->getSurfaceId()].insert(family);
|
|
112
|
+
}
|
|
97
113
|
updates[mutation.tag] = std::move(mutation.props);
|
|
98
114
|
}
|
|
99
115
|
}
|
|
100
116
|
|
|
101
117
|
if (hasAnyLayoutUpdates) {
|
|
102
|
-
|
|
118
|
+
commitUpdates(surfaceToFamilies, updates);
|
|
103
119
|
} else {
|
|
104
120
|
synchronouslyUpdateProps(updates);
|
|
105
121
|
}
|
|
@@ -108,41 +124,60 @@ void AnimationBackend::onAnimationFrame(double timestamp) {
|
|
|
108
124
|
void AnimationBackend::start(const Callback& callback, bool isAsync) {
|
|
109
125
|
callbacks.push_back(callback);
|
|
110
126
|
// TODO: startOnRenderCallback_ should provide the timestamp from the platform
|
|
111
|
-
startOnRenderCallback_
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
if (startOnRenderCallback_) {
|
|
128
|
+
startOnRenderCallback_(
|
|
129
|
+
[this]() {
|
|
130
|
+
onAnimationFrame(
|
|
131
|
+
std::chrono::steady_clock::now().time_since_epoch().count() /
|
|
132
|
+
1000);
|
|
133
|
+
},
|
|
134
|
+
isAsync);
|
|
135
|
+
}
|
|
117
136
|
}
|
|
118
137
|
void AnimationBackend::stop(bool isAsync) {
|
|
119
|
-
stopOnRenderCallback_
|
|
138
|
+
if (stopOnRenderCallback_) {
|
|
139
|
+
stopOnRenderCallback_(isAsync);
|
|
140
|
+
}
|
|
120
141
|
callbacks.clear();
|
|
121
142
|
}
|
|
122
143
|
|
|
123
|
-
void AnimationBackend::
|
|
124
|
-
const std::
|
|
144
|
+
void AnimationBackend::commitUpdates(
|
|
145
|
+
const std::unordered_map<
|
|
146
|
+
SurfaceId,
|
|
147
|
+
std::unordered_set<const ShadowNodeFamily*>>& surfaceToFamilies,
|
|
125
148
|
std::unordered_map<Tag, AnimatedProps>& updates) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
149
|
+
for (const auto& surfaceEntry : surfaceToFamilies) {
|
|
150
|
+
const auto& surfaceId = surfaceEntry.first;
|
|
151
|
+
const auto& surfaceFamilies = surfaceEntry.second;
|
|
152
|
+
uiManager_->getShadowTreeRegistry().visit(
|
|
153
|
+
surfaceId, [&surfaceFamilies, &updates](const ShadowTree& shadowTree) {
|
|
154
|
+
shadowTree.commit(
|
|
155
|
+
[&surfaceFamilies,
|
|
156
|
+
&updates](const RootShadowNode& oldRootShadowNode) {
|
|
157
|
+
return std::static_pointer_cast<RootShadowNode>(
|
|
158
|
+
oldRootShadowNode.cloneMultiple(
|
|
159
|
+
surfaceFamilies,
|
|
160
|
+
[&surfaceFamilies, &updates](
|
|
161
|
+
const ShadowNode& shadowNode,
|
|
162
|
+
const ShadowNodeFragment& fragment) {
|
|
163
|
+
auto newProps =
|
|
164
|
+
ShadowNodeFragment::propsPlaceholder();
|
|
165
|
+
if (surfaceFamilies.contains(
|
|
166
|
+
&shadowNode.getFamily())) {
|
|
167
|
+
auto& animatedProps =
|
|
168
|
+
updates.at(shadowNode.getTag());
|
|
169
|
+
newProps = cloneProps(animatedProps, shadowNode);
|
|
170
|
+
}
|
|
171
|
+
return shadowNode.clone(
|
|
172
|
+
{.props = newProps,
|
|
173
|
+
.children = fragment.children,
|
|
174
|
+
.state = shadowNode.getState(),
|
|
175
|
+
.runtimeShadowNodeReference = false});
|
|
176
|
+
}));
|
|
177
|
+
},
|
|
178
|
+
{.mountSynchronously = true});
|
|
179
|
+
});
|
|
180
|
+
}
|
|
146
181
|
}
|
|
147
182
|
|
|
148
183
|
void AnimationBackend::synchronouslyUpdateProps(
|
|
@@ -18,6 +18,18 @@
|
|
|
18
18
|
|
|
19
19
|
namespace facebook::react {
|
|
20
20
|
|
|
21
|
+
class AnimationBackend;
|
|
22
|
+
|
|
23
|
+
class UIManagerNativeAnimatedDelegateBackendImpl : public UIManagerNativeAnimatedDelegate {
|
|
24
|
+
public:
|
|
25
|
+
explicit UIManagerNativeAnimatedDelegateBackendImpl(std::weak_ptr<UIManagerAnimationBackend> animationBackend);
|
|
26
|
+
|
|
27
|
+
void runAnimationFrame() override;
|
|
28
|
+
|
|
29
|
+
private:
|
|
30
|
+
std::weak_ptr<UIManagerAnimationBackend> animationBackend_;
|
|
31
|
+
};
|
|
32
|
+
|
|
21
33
|
struct AnimationMutation {
|
|
22
34
|
Tag tag;
|
|
23
35
|
const ShadowNodeFamily *family;
|
|
@@ -47,8 +59,8 @@ class AnimationBackend : public UIManagerAnimationBackend {
|
|
|
47
59
|
DirectManipulationCallback &&directManipulationCallback,
|
|
48
60
|
FabricCommitCallback &&fabricCommitCallback,
|
|
49
61
|
UIManager *uiManager);
|
|
50
|
-
void
|
|
51
|
-
const std::unordered_set<const ShadowNodeFamily
|
|
62
|
+
void commitUpdates(
|
|
63
|
+
const std::unordered_map<SurfaceId, std::unordered_set<const ShadowNodeFamily *>> &surfaceToFamilies,
|
|
52
64
|
std::unordered_map<Tag, AnimatedProps> &updates);
|
|
53
65
|
void synchronouslyUpdateProps(const std::unordered_map<Tag, AnimatedProps> &updates);
|
|
54
66
|
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
#include
|
|
8
|
+
#include "EventQueueProcessor.h"
|
|
9
|
+
|
|
9
10
|
#include <logger/react_native_log.h>
|
|
10
11
|
#include <react/featureflags/ReactNativeFeatureFlags.h>
|
|
12
|
+
|
|
11
13
|
#include "EventEmitter.h"
|
|
12
14
|
#include "EventLogger.h"
|
|
13
|
-
#include "EventQueue.h"
|
|
14
|
-
#include "ShadowNodeFamily.h"
|
|
15
15
|
|
|
16
16
|
namespace facebook::react {
|
|
17
17
|
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
#include <jsi/hermes.h>
|
|
19
19
|
#include <jsi/instrumentation.h>
|
|
20
20
|
#include <jsinspector-modern/HostTarget.h>
|
|
21
|
-
#include <jsireact/JSIExecutor.h>
|
|
22
21
|
#include <react/featureflags/ReactNativeFeatureFlags.h>
|
|
23
22
|
#include <react/renderer/core/ShadowNode.h>
|
|
24
23
|
#include <react/renderer/runtimescheduler/RuntimeSchedulerBinding.h>
|
|
24
|
+
#include <react/runtime/JSRuntimeBindings.h>
|
|
25
25
|
#include <react/timing/primitives.h>
|
|
26
26
|
#include <react/utils/jsi-utils.h>
|
|
27
27
|
#include <iostream>
|
|
@@ -48,6 +48,12 @@ std::shared_ptr<RuntimeScheduler> createRuntimeScheduler(
|
|
|
48
48
|
return scheduler;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
std::string getSyntheticBundlePath(uint32_t bundleId) {
|
|
52
|
+
std::array<char, 32> buffer{};
|
|
53
|
+
std::snprintf(buffer.data(), buffer.size(), "seg-%u.js", bundleId);
|
|
54
|
+
return buffer.data();
|
|
55
|
+
}
|
|
56
|
+
|
|
51
57
|
} // namespace
|
|
52
58
|
|
|
53
59
|
ReactInstance::ReactInstance(
|
|
@@ -365,12 +371,8 @@ void ReactInstance::registerSegment(
|
|
|
365
371
|
}
|
|
366
372
|
LOG(WARNING) << "Starting to evaluate segment " << segmentId
|
|
367
373
|
<< " in ReactInstance::registerSegment";
|
|
368
|
-
#pragma clang diagnostic push
|
|
369
|
-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
370
374
|
runtime.evaluateJavaScript(
|
|
371
|
-
std::move(script),
|
|
372
|
-
JSExecutor::getSyntheticBundlePath(segmentId, segmentPath));
|
|
373
|
-
#pragma clang diagnostic pop
|
|
375
|
+
std::move(script), getSyntheticBundlePath(segmentId));
|
|
374
376
|
LOG(WARNING) << "Finished evaluating segment " << segmentId
|
|
375
377
|
<< " in ReactInstance::registerSegment";
|
|
376
378
|
if (hasLogger) {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
#include <jserrorhandler/JsErrorHandler.h>
|
|
14
14
|
#include <jsi/jsi.h>
|
|
15
15
|
#include <jsinspector-modern/ReactCdp.h>
|
|
16
|
-
#include <jsireact/JSIExecutor.h>
|
|
17
16
|
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
18
17
|
#include <react/runtime/BufferedRuntimeExecutor.h>
|
|
19
18
|
#include <react/runtime/JSRuntimeFactory.h>
|
package/flow/bom.js.flow
CHANGED
|
@@ -25,6 +25,10 @@ type DevToolsColor =
|
|
|
25
25
|
| 'warning'
|
|
26
26
|
| 'error';
|
|
27
27
|
|
|
28
|
+
declare interface ConsoleTask {
|
|
29
|
+
run<T>(f: () => T): T;
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
// $FlowExpectedError[libdef-override] Flow core definitions are incomplete.
|
|
29
33
|
declare var console: {
|
|
30
34
|
// Logging
|
|
@@ -75,6 +79,9 @@ declare var console: {
|
|
|
75
79
|
detail?: {[string]: mixed},
|
|
76
80
|
): void,
|
|
77
81
|
|
|
82
|
+
// Stack tagging
|
|
83
|
+
createTask(label: string): ConsoleTask,
|
|
84
|
+
|
|
78
85
|
...
|
|
79
86
|
};
|
|
80
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.84.0-nightly-
|
|
3
|
+
"version": "0.84.0-nightly-20251107-f8198f662",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -160,13 +160,13 @@
|
|
|
160
160
|
},
|
|
161
161
|
"dependencies": {
|
|
162
162
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
163
|
-
"@react-native/assets-registry": "0.84.0-nightly-
|
|
164
|
-
"@react-native/codegen": "0.84.0-nightly-
|
|
165
|
-
"@react-native/community-cli-plugin": "0.84.0-nightly-
|
|
166
|
-
"@react-native/gradle-plugin": "0.84.0-nightly-
|
|
167
|
-
"@react-native/js-polyfills": "0.84.0-nightly-
|
|
168
|
-
"@react-native/normalize-colors": "0.84.0-nightly-
|
|
169
|
-
"@react-native/virtualized-lists": "0.84.0-nightly-
|
|
163
|
+
"@react-native/assets-registry": "0.84.0-nightly-20251107-f8198f662",
|
|
164
|
+
"@react-native/codegen": "0.84.0-nightly-20251107-f8198f662",
|
|
165
|
+
"@react-native/community-cli-plugin": "0.84.0-nightly-20251107-f8198f662",
|
|
166
|
+
"@react-native/gradle-plugin": "0.84.0-nightly-20251107-f8198f662",
|
|
167
|
+
"@react-native/js-polyfills": "0.84.0-nightly-20251107-f8198f662",
|
|
168
|
+
"@react-native/normalize-colors": "0.84.0-nightly-20251107-f8198f662",
|
|
169
|
+
"@react-native/virtualized-lists": "0.84.0-nightly-20251107-f8198f662",
|
|
170
170
|
"abort-controller": "^3.0.0",
|
|
171
171
|
"anser": "^1.4.9",
|
|
172
172
|
"ansi-regex": "^5.0.0",
|
|
@@ -14,7 +14,12 @@ if [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then
|
|
|
14
14
|
# it's better to rely on platform name as fallback because architecture differs between simulator and device
|
|
15
15
|
|
|
16
16
|
if [[ "$PLATFORM_NAME" == *"simulator"* ]]; then
|
|
17
|
-
|
|
17
|
+
if [[ "$(uname -m)" == "arm64" ]]; then
|
|
18
|
+
# Apple Silicon Mac -> arm64 simulator
|
|
19
|
+
CURRENT_ARCH="arm64"
|
|
20
|
+
else
|
|
21
|
+
CURRENT_ARCH="x86_64"
|
|
22
|
+
fi
|
|
18
23
|
else
|
|
19
24
|
CURRENT_ARCH="arm64"
|
|
20
25
|
fi
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<c9de7b7b7e9d2c6170460f127e7a2659>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Components/Button.js
|
|
@@ -142,9 +142,6 @@ export type ButtonProps = Readonly<{
|
|
|
142
142
|
[button:source]:
|
|
143
143
|
https://github.com/facebook/react-native/blob/HEAD/Libraries/Components/Button.js
|
|
144
144
|
|
|
145
|
-
[button:examples]:
|
|
146
|
-
https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button
|
|
147
|
-
|
|
148
145
|
```jsx
|
|
149
146
|
<Button
|
|
150
147
|
onPress={onPressLearnMore}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<6313a2ed74066cde1bcc0fbaed89176a>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/StyleSheet/PlatformColorValueTypes.js.flow
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type { ProcessedColorValue } from "./processColor";
|
|
14
|
-
import type {
|
|
15
|
-
export declare function PlatformColor(...names: Array<string>):
|
|
14
|
+
import type { NativeColorValue } from "./StyleSheet";
|
|
15
|
+
export declare function PlatformColor(...names: Array<string>): NativeColorValue;
|
|
16
16
|
export declare function normalizeColorObject(color: NativeColorValue): null | undefined | ProcessedColorValue;
|
|
17
17
|
export declare function processColorObject(color: NativeColorValue): null | undefined | NativeColorValue;
|
|
@@ -1,25 +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
|
-
|
|
8
|
-
package com.facebook.react.bridge
|
|
9
|
-
|
|
10
|
-
import com.facebook.jni.HybridData
|
|
11
|
-
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
import com.facebook.react.common.annotations.internal.InteropLegacyArchitecture
|
|
13
|
-
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger
|
|
14
|
-
|
|
15
|
-
/** This does nothing interesting, except avoid breaking existing code. */
|
|
16
|
-
@DoNotStrip
|
|
17
|
-
@InteropLegacyArchitecture
|
|
18
|
-
public open class CxxModuleWrapper protected constructor(hybridData: HybridData) :
|
|
19
|
-
CxxModuleWrapperBase(hybridData) {
|
|
20
|
-
private companion object {
|
|
21
|
-
init {
|
|
22
|
-
LegacyArchitectureLogger.assertLegacyArchitecture("CxxModuleWrapper")
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,61 +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
|
-
|
|
8
|
-
package com.facebook.react.bridge
|
|
9
|
-
|
|
10
|
-
import com.facebook.jni.HybridData
|
|
11
|
-
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
import com.facebook.react.common.annotations.internal.InteropLegacyArchitecture
|
|
13
|
-
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel
|
|
14
|
-
import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* A Java Object which represents a cross-platform C++ module
|
|
18
|
-
*
|
|
19
|
-
* This module implements the [NativeModule] interface but will never be invoked from Java, instead
|
|
20
|
-
* the underlying Cxx module will be extracted by the bridge and called directly.
|
|
21
|
-
*/
|
|
22
|
-
@DoNotStrip
|
|
23
|
-
@InteropLegacyArchitecture
|
|
24
|
-
public open class CxxModuleWrapperBase
|
|
25
|
-
protected constructor(
|
|
26
|
-
// For creating a wrapper from C++, or from a derived class.
|
|
27
|
-
@Suppress("NoHungarianNotation") @DoNotStrip private var mHybridData: HybridData
|
|
28
|
-
) : NativeModule {
|
|
29
|
-
external override fun getName(): String
|
|
30
|
-
|
|
31
|
-
override fun initialize() {
|
|
32
|
-
// do nothing
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@Deprecated(
|
|
36
|
-
"The method canOverrideExistingModule is not used in the New Architecture and will be removed in a future release."
|
|
37
|
-
)
|
|
38
|
-
override fun canOverrideExistingModule(): Boolean = false
|
|
39
|
-
|
|
40
|
-
override fun invalidate() {
|
|
41
|
-
mHybridData.resetNative()
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Replace the current native module held by this wrapper by a new instance
|
|
45
|
-
protected fun resetModule(hd: HybridData) {
|
|
46
|
-
if (hd !== mHybridData) {
|
|
47
|
-
mHybridData.resetNative()
|
|
48
|
-
mHybridData = hd
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
private companion object {
|
|
53
|
-
init {
|
|
54
|
-
ReactNativeJNISoLoader.staticInit()
|
|
55
|
-
LegacyArchitectureLogger.assertLegacyArchitecture(
|
|
56
|
-
"CxxModuleWrapperBase",
|
|
57
|
-
LegacyArchitectureLogLevel.WARNING,
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,37 +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
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include "CxxModuleWrapperBase.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
class CxxModuleWrapper : public jni::HybridClass<CxxModuleWrapper, CxxModuleWrapperBase> {
|
|
15
|
-
public:
|
|
16
|
-
constexpr static const char *const kJavaDescriptor = "Lcom/facebook/react/bridge/CxxModuleWrapper;";
|
|
17
|
-
|
|
18
|
-
std::string getName() override
|
|
19
|
-
{
|
|
20
|
-
return module_->getName();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// This steals ownership of the underlying module for use by the C++ bridge
|
|
24
|
-
std::unique_ptr<xplat::module::CxxModule> getModule() override
|
|
25
|
-
{
|
|
26
|
-
return std::move(module_);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
protected:
|
|
30
|
-
friend HybridBase;
|
|
31
|
-
|
|
32
|
-
explicit CxxModuleWrapper(std::unique_ptr<xplat::module::CxxModule> module) : module_(std::move(module)) {}
|
|
33
|
-
|
|
34
|
-
std::unique_ptr<xplat::module::CxxModule> module_;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
} // namespace facebook::react
|