react-native 0.84.0-nightly-20251106-de5141a3d → 0.84.0-nightly-20251108-7486a2bc5
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/RCTBlobPlugins.mm +14 -14
- 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/RCTImagePlugins.h +1 -0
- package/Libraries/Image/RCTImagePlugins.mm +30 -17
- 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/LinkingIOS/RCTLinkingPlugins.mm +10 -13
- package/Libraries/LogBox/Data/LogBoxData.js +31 -4
- package/Libraries/NativeAnimation/RCTAnimationPlugins.mm +14 -14
- 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/RCTNetworkPlugins.mm +22 -16
- package/Libraries/Network/RCTNetworking.mm +1 -4
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +1 -4
- package/Libraries/PushNotificationIOS/RCTPushNotificationPlugins.mm +10 -13
- package/Libraries/Settings/RCTSettingsManager.mm +1 -4
- package/Libraries/Settings/RCTSettingsPlugins.mm +10 -13
- 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/Libraries/Vibration/RCTVibrationPlugins.mm +10 -13
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/CoreModulesPlugins.mm +98 -35
- 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/FBReactNativeSpec/FBReactNativeSpecJSI.h +16 -0
- 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/fabric/FabricUIManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +13 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +21 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +23 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +5 -1
- 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/uimanager/BaseViewManager.java +4 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VirtualViewContainerStateExperimental.kt +7 -0
- package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +12 -0
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +29 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +7 -1
- 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/JReactHostInspectorTarget.cpp +8 -1
- 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/ReactAndroid/src/main/jni/third-party/folly/CMakeLists.txt +1 -0
- package/ReactApple/RCTAnimatedModuleProvider/RCTAnimatedModuleProvider.mm +29 -4
- 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/HostTarget.h +8 -2
- package/ReactCommon/jsinspector-modern/HostTargetTraceRecording.cpp +6 -2
- package/ReactCommon/jsinspector-modern/HostTargetTraceRecording.h +15 -5
- package/ReactCommon/jsinspector-modern/HostTargetTracing.cpp +9 -5
- package/ReactCommon/jsinspector-modern/RuntimeAgent.cpp +3 -2
- 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/TracingAgent.cpp +19 -2
- package/ReactCommon/jsinspector-modern/tests/ConsoleCreateTaskTest.cpp +131 -0
- package/ReactCommon/jsinspector-modern/tests/ReactInstanceIntegrationTest.cpp +1 -0
- package/ReactCommon/jsinspector-modern/tests/TracingTest.cpp +59 -0
- package/ReactCommon/jsinspector-modern/tests/TracingTest.h +20 -7
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +32 -20
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.h +6 -2
- package/ReactCommon/jsinspector-modern/tracing/TargetTracingAgent.h +5 -0
- package/ReactCommon/jsinspector-modern/tracing/TraceEvent.h +2 -1
- package/ReactCommon/jsinspector-modern/tracing/TraceEventSerializer.cpp +2 -1
- package/ReactCommon/jsinspector-modern/tracing/TraceRecordingState.h +3 -0
- package/ReactCommon/jsinspector-modern/tracing/TracingCategory.h +126 -0
- package/ReactCommon/jsitooling/react/runtime/JSRuntimeBindings.cpp +54 -0
- package/ReactCommon/jsitooling/react/runtime/JSRuntimeBindings.h +20 -0
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +9 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +11 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +113 -77
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +6 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +9 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +19 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +3 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +0 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +11 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +5 -1
- 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 +24 -19
- package/ReactCommon/react/renderer/animated/NativeAnimatedNodesManagerProvider.cpp +11 -6
- 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/ReactCommon/react/runtime/TimerManager.cpp +0 -54
- package/ReactCommon/react/runtime/TimerManager.h +0 -12
- package/flow/bom.js.flow +7 -0
- package/package.json +8 -8
- package/scripts/ios-configure-glog.sh +6 -1
- package/src/private/featureflags/ReactNativeFeatureFlags.js +11 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +3 -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
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
#include "TimerManager.h"
|
|
9
9
|
|
|
10
10
|
#include <cxxreact/TraceSection.h>
|
|
11
|
-
#include <react/featureflags/ReactNativeFeatureFlags.h>
|
|
12
11
|
|
|
13
12
|
#include <cmath>
|
|
14
13
|
#include <utility>
|
|
@@ -62,41 +61,6 @@ void TimerManager::setRuntimeExecutor(
|
|
|
62
61
|
runtimeExecutor_ = std::move(runtimeExecutor);
|
|
63
62
|
}
|
|
64
63
|
|
|
65
|
-
TimerHandle TimerManager::createReactNativeMicrotask(
|
|
66
|
-
jsi::Function&& callback,
|
|
67
|
-
std::vector<jsi::Value>&& args) {
|
|
68
|
-
// Get the id for the callback.
|
|
69
|
-
TimerHandle timerID = timerIndex_++;
|
|
70
|
-
timers_.emplace(
|
|
71
|
-
std::piecewise_construct,
|
|
72
|
-
std::forward_as_tuple(timerID),
|
|
73
|
-
std::forward_as_tuple(
|
|
74
|
-
std::move(callback), std::move(args), /* repeat */ false));
|
|
75
|
-
|
|
76
|
-
reactNativeMicrotasksQueue_.push_back(timerID);
|
|
77
|
-
return timerID;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
void TimerManager::callReactNativeMicrotasks(jsi::Runtime& runtime) {
|
|
81
|
-
std::vector<TimerHandle> reactNativeMicrotasksQueue;
|
|
82
|
-
while (!reactNativeMicrotasksQueue_.empty()) {
|
|
83
|
-
reactNativeMicrotasksQueue.clear();
|
|
84
|
-
reactNativeMicrotasksQueue.swap(reactNativeMicrotasksQueue_);
|
|
85
|
-
|
|
86
|
-
for (auto reactNativeMicrotaskID : reactNativeMicrotasksQueue) {
|
|
87
|
-
// ReactNativeMicrotasks can clear other scheduled reactNativeMicrotasks.
|
|
88
|
-
auto it = timers_.find(reactNativeMicrotaskID);
|
|
89
|
-
if (it != timers_.end()) {
|
|
90
|
-
it->second.invoke(runtime);
|
|
91
|
-
|
|
92
|
-
// Invoking a timer has the potential to delete it. Do not re-use the
|
|
93
|
-
// existing iterator to erase it from the map.
|
|
94
|
-
timers_.erase(reactNativeMicrotaskID);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
64
|
TimerHandle TimerManager::createTimer(
|
|
101
65
|
jsi::Function&& callback,
|
|
102
66
|
std::vector<jsi::Value>&& args,
|
|
@@ -156,24 +120,6 @@ TimerHandle TimerManager::createRecurringTimer(
|
|
|
156
120
|
return timerID;
|
|
157
121
|
}
|
|
158
122
|
|
|
159
|
-
void TimerManager::deleteReactNativeMicrotask(
|
|
160
|
-
jsi::Runtime& runtime,
|
|
161
|
-
TimerHandle timerHandle) {
|
|
162
|
-
if (timerHandle < 0) {
|
|
163
|
-
throw jsi::JSError(
|
|
164
|
-
runtime, "clearReactNativeMicrotask was called with an invalid handle");
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
auto it = std::find(
|
|
168
|
-
reactNativeMicrotasksQueue_.begin(),
|
|
169
|
-
reactNativeMicrotasksQueue_.end(),
|
|
170
|
-
timerHandle);
|
|
171
|
-
if (it != reactNativeMicrotasksQueue_.end()) {
|
|
172
|
-
reactNativeMicrotasksQueue_.erase(it);
|
|
173
|
-
timers_.erase(timerHandle);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
123
|
void TimerManager::deleteTimer(jsi::Runtime& runtime, TimerHandle timerHandle) {
|
|
178
124
|
if (timerHandle < 0) {
|
|
179
125
|
throw jsi::JSError(runtime, "clearTimeout called with an invalid handle");
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
10
|
#include <ReactCommon/RuntimeExecutor.h>
|
|
11
|
-
#include <cstdint>
|
|
12
11
|
#include <unordered_map>
|
|
13
12
|
#include <vector>
|
|
14
13
|
|
|
@@ -50,17 +49,11 @@ class TimerManager {
|
|
|
50
49
|
|
|
51
50
|
void setRuntimeExecutor(RuntimeExecutor runtimeExecutor) noexcept;
|
|
52
51
|
|
|
53
|
-
void callReactNativeMicrotasks(jsi::Runtime &runtime);
|
|
54
|
-
|
|
55
52
|
void callTimer(TimerHandle handle);
|
|
56
53
|
|
|
57
54
|
void attachGlobals(jsi::Runtime &runtime);
|
|
58
55
|
|
|
59
56
|
private:
|
|
60
|
-
TimerHandle createReactNativeMicrotask(jsi::Function &&callback, std::vector<jsi::Value> &&args);
|
|
61
|
-
|
|
62
|
-
void deleteReactNativeMicrotask(jsi::Runtime &runtime, TimerHandle handle);
|
|
63
|
-
|
|
64
57
|
TimerHandle createTimer(
|
|
65
58
|
jsi::Function &&callback,
|
|
66
59
|
std::vector<jsi::Value> &&args,
|
|
@@ -88,11 +81,6 @@ class TimerManager {
|
|
|
88
81
|
// As per WHATWG HTML 8.6.1 (Timers) ids must be greater than zero, i.e. start
|
|
89
82
|
// at 1
|
|
90
83
|
TimerHandle timerIndex_{1};
|
|
91
|
-
|
|
92
|
-
// The React Native microtask queue is used to back public APIs including
|
|
93
|
-
// `queueMicrotask`, `clearImmediate`, and `setImmediate` (which is used by
|
|
94
|
-
// the Promise polyfill) when the JSVM microtask mechanism is not used.
|
|
95
|
-
std::vector<TimerHandle> reactNativeMicrotasksQueue_;
|
|
96
84
|
};
|
|
97
85
|
|
|
98
86
|
} // namespace facebook::react
|
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-20251108-7486a2bc5",
|
|
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-20251108-7486a2bc5",
|
|
164
|
+
"@react-native/codegen": "0.84.0-nightly-20251108-7486a2bc5",
|
|
165
|
+
"@react-native/community-cli-plugin": "0.84.0-nightly-20251108-7486a2bc5",
|
|
166
|
+
"@react-native/gradle-plugin": "0.84.0-nightly-20251108-7486a2bc5",
|
|
167
|
+
"@react-native/js-polyfills": "0.84.0-nightly-20251108-7486a2bc5",
|
|
168
|
+
"@react-native/normalize-colors": "0.84.0-nightly-20251108-7486a2bc5",
|
|
169
|
+
"@react-native/virtualized-lists": "0.84.0-nightly-20251108-7486a2bc5",
|
|
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<<77fabf68a75a0d8a563b032027e7f817>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
* @noformat
|
|
10
10
|
*/
|
|
@@ -56,10 +56,12 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
56
56
|
cxxNativeAnimatedRemoveJsSync: Getter<boolean>,
|
|
57
57
|
disableEarlyViewCommandExecution: Getter<boolean>,
|
|
58
58
|
disableFabricCommitInCXXAnimated: Getter<boolean>,
|
|
59
|
+
disableImageViewPreallocationAndroid: Getter<boolean>,
|
|
59
60
|
disableMountItemReorderingAndroid: Getter<boolean>,
|
|
60
61
|
disableOldAndroidAttachmentMetricsWorkarounds: Getter<boolean>,
|
|
61
62
|
disableSubviewClippingAndroid: Getter<boolean>,
|
|
62
63
|
disableTextLayoutManagerCacheAndroid: Getter<boolean>,
|
|
64
|
+
disableViewPreallocationAndroid: Getter<boolean>,
|
|
63
65
|
enableAccessibilityOrder: Getter<boolean>,
|
|
64
66
|
enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean>,
|
|
65
67
|
enableAndroidLinearText: Getter<boolean>,
|
|
@@ -237,6 +239,10 @@ export const disableEarlyViewCommandExecution: Getter<boolean> = createNativeFla
|
|
|
237
239
|
* Prevents use of Fabric commit in C++ Animated implementation
|
|
238
240
|
*/
|
|
239
241
|
export const disableFabricCommitInCXXAnimated: Getter<boolean> = createNativeFlagGetter('disableFabricCommitInCXXAnimated', false);
|
|
242
|
+
/**
|
|
243
|
+
* Force disable view preallocation for images triggered from createNode off the main thread on Android
|
|
244
|
+
*/
|
|
245
|
+
export const disableImageViewPreallocationAndroid: Getter<boolean> = createNativeFlagGetter('disableImageViewPreallocationAndroid', false);
|
|
240
246
|
/**
|
|
241
247
|
* Prevent FabricMountingManager from reordering mountItems, which may lead to invalid state on the UI thread
|
|
242
248
|
*/
|
|
@@ -253,6 +259,10 @@ export const disableSubviewClippingAndroid: Getter<boolean> = createNativeFlagGe
|
|
|
253
259
|
* Turns off the global measurement cache used by TextLayoutManager on Android.
|
|
254
260
|
*/
|
|
255
261
|
export const disableTextLayoutManagerCacheAndroid: Getter<boolean> = createNativeFlagGetter('disableTextLayoutManagerCacheAndroid', false);
|
|
262
|
+
/**
|
|
263
|
+
* Force disable view preallocation triggered from createNode off the main thread on Android
|
|
264
|
+
*/
|
|
265
|
+
export const disableViewPreallocationAndroid: Getter<boolean> = createNativeFlagGetter('disableViewPreallocationAndroid', false);
|
|
256
266
|
/**
|
|
257
267
|
* When enabled, the accessibilityOrder prop will propagate to native platforms and define the accessibility order.
|
|
258
268
|
*/
|
|
@@ -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<<5819b97ded2f415bdcff52f7f408aec6>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
* @noformat
|
|
10
10
|
*/
|
|
@@ -31,10 +31,12 @@ export interface Spec extends TurboModule {
|
|
|
31
31
|
+cxxNativeAnimatedRemoveJsSync?: () => boolean;
|
|
32
32
|
+disableEarlyViewCommandExecution?: () => boolean;
|
|
33
33
|
+disableFabricCommitInCXXAnimated?: () => boolean;
|
|
34
|
+
+disableImageViewPreallocationAndroid?: () => boolean;
|
|
34
35
|
+disableMountItemReorderingAndroid?: () => boolean;
|
|
35
36
|
+disableOldAndroidAttachmentMetricsWorkarounds?: () => boolean;
|
|
36
37
|
+disableSubviewClippingAndroid?: () => boolean;
|
|
37
38
|
+disableTextLayoutManagerCacheAndroid?: () => boolean;
|
|
39
|
+
+disableViewPreallocationAndroid?: () => boolean;
|
|
38
40
|
+enableAccessibilityOrder?: () => boolean;
|
|
39
41
|
+enableAccumulatedUpdatesInRawPropsAndroid?: () => boolean;
|
|
40
42
|
+enableAndroidLinearText?: () => boolean;
|
|
@@ -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
|