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
|
@@ -125,6 +125,7 @@ export function unstable_createAnimatedComponentWithAllowlist<
|
|
|
125
125
|
const [reducedProps, callbackRef] = useAnimatedProps<
|
|
126
126
|
TProps,
|
|
127
127
|
React.ElementRef<TInstance>,
|
|
128
|
+
// $FlowFixMe[incompatible-type]
|
|
128
129
|
>(props);
|
|
129
130
|
const ref = useMergeRefs<React.ElementRef<TInstance>>(
|
|
130
131
|
callbackRef,
|
|
@@ -42,10 +42,7 @@ static NSString *const kBlobURIScheme = @"blob";
|
|
|
42
42
|
dispatch_queue_t _processingQueue;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
return @"BlobModule";
|
|
48
|
-
}
|
|
45
|
+
RCT_EXPORT_MODULE(BlobModule)
|
|
49
46
|
|
|
50
47
|
@synthesize bridge = _bridge;
|
|
51
48
|
@synthesize moduleRegistry = _moduleRegistry;
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
|
|
14
14
|
#import "RCTBlobPlugins.h"
|
|
15
15
|
|
|
16
|
-
#import <
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
auto p = sCoreModuleClassMap->find(name);
|
|
27
|
-
if (p != sCoreModuleClassMap->end()) {
|
|
28
|
-
auto classFunc = p->second;
|
|
29
|
-
return classFunc();
|
|
16
|
+
#import <string_view>
|
|
17
|
+
|
|
18
|
+
using namespace std::literals;
|
|
19
|
+
|
|
20
|
+
Class RCTBlobClassProvider(const char *name)
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
if (name == "BlobModule"sv) {
|
|
24
|
+
return RCTBlobManagerCls();
|
|
30
25
|
}
|
|
26
|
+
|
|
27
|
+
if (name == "FileReaderModule"sv) {
|
|
28
|
+
return RCTFileReaderModuleCls();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
31
|
return nil;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -184,9 +184,6 @@ export type ButtonProps = $ReadOnly<{
|
|
|
184
184
|
[button:source]:
|
|
185
185
|
https://github.com/facebook/react-native/blob/HEAD/Libraries/Components/Button.js
|
|
186
186
|
|
|
187
|
-
[button:examples]:
|
|
188
|
-
https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button
|
|
189
|
-
|
|
190
187
|
```jsx
|
|
191
188
|
<Button
|
|
192
189
|
onPress={onPressLearnMore}
|
|
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
|
|
|
29
29
|
static major: number = 0;
|
|
30
30
|
static minor: number = 84;
|
|
31
31
|
static patch: number = 0;
|
|
32
|
-
static prerelease: string | null = 'nightly-
|
|
32
|
+
static prerelease: string | null = 'nightly-20251108-7486a2bc5';
|
|
33
33
|
|
|
34
34
|
static getVersionString(): string {
|
|
35
35
|
return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
|
|
@@ -92,10 +92,7 @@ static NSError *addResponseHeadersToError(NSError *originalError, NSHTTPURLRespo
|
|
|
92
92
|
@synthesize maxConcurrentDecodingTasks = _maxConcurrentDecodingTasks;
|
|
93
93
|
@synthesize maxConcurrentDecodingBytes = _maxConcurrentDecodingBytes;
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
{
|
|
97
|
-
return @"RCTImageLoader";
|
|
98
|
-
}
|
|
95
|
+
RCT_EXPORT_MODULE()
|
|
99
96
|
|
|
100
97
|
- (instancetype)init
|
|
101
98
|
{
|
|
@@ -29,6 +29,7 @@ extern "C" {
|
|
|
29
29
|
Class RCTImageClassProvider(const char *name);
|
|
30
30
|
|
|
31
31
|
// Lookup functions
|
|
32
|
+
Class RCTBundleAssetImageLoaderCls(void) __attribute__((used));
|
|
32
33
|
Class RCTGIFImageDecoderCls(void) __attribute__((used));
|
|
33
34
|
Class RCTImageEditingManagerCls(void) __attribute__((used));
|
|
34
35
|
Class RCTImageLoaderCls(void) __attribute__((used));
|
|
@@ -13,24 +13,37 @@
|
|
|
13
13
|
|
|
14
14
|
#import "RCTImagePlugins.h"
|
|
15
15
|
|
|
16
|
-
#import <
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return
|
|
16
|
+
#import <string_view>
|
|
17
|
+
|
|
18
|
+
using namespace std::literals;
|
|
19
|
+
|
|
20
|
+
Class RCTImageClassProvider(const char *name)
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
if (name == "BundleAssetImageLoader"sv) {
|
|
24
|
+
return RCTBundleAssetImageLoaderCls();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (name == "GIFImageDecoder"sv) {
|
|
28
|
+
return RCTGIFImageDecoderCls();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (name == "ImageEditingManager"sv) {
|
|
32
|
+
return RCTImageEditingManagerCls();
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
if (name == "ImageLoader"sv) {
|
|
36
|
+
return RCTImageLoaderCls();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (name == "ImageStoreManager"sv) {
|
|
40
|
+
return RCTImageStoreManagerCls();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (name == "LocalAssetImageLoader"sv) {
|
|
44
|
+
return RCTLocalAssetImageLoaderCls();
|
|
45
|
+
}
|
|
46
|
+
|
|
34
47
|
return nil;
|
|
35
48
|
}
|
|
36
49
|
|
|
@@ -13,20 +13,17 @@
|
|
|
13
13
|
|
|
14
14
|
#import "RCTLinkingPlugins.h"
|
|
15
15
|
|
|
16
|
-
#import <
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
auto p = sCoreModuleClassMap->find(name);
|
|
26
|
-
if (p != sCoreModuleClassMap->end()) {
|
|
27
|
-
auto classFunc = p->second;
|
|
28
|
-
return classFunc();
|
|
16
|
+
#import <string_view>
|
|
17
|
+
|
|
18
|
+
using namespace std::literals;
|
|
19
|
+
|
|
20
|
+
Class RCTLinkingClassProvider(const char *name)
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
if (name == "LinkingManager"sv) {
|
|
24
|
+
return RCTLinkingManagerCls();
|
|
29
25
|
}
|
|
26
|
+
|
|
30
27
|
return nil;
|
|
31
28
|
}
|
|
32
29
|
|
|
@@ -412,6 +412,21 @@ export function observe(observer: Observer): Subscription {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Same as observe(), but doesn't call notify observer sync at the time of subscription.
|
|
417
|
+
* Expected to be used only in LogBoxStateSubscription.
|
|
418
|
+
*/
|
|
419
|
+
function observeNext(observer: Observer): Subscription {
|
|
420
|
+
const subscription = {observer};
|
|
421
|
+
observers.add(subscription);
|
|
422
|
+
|
|
423
|
+
return {
|
|
424
|
+
unsubscribe(): void {
|
|
425
|
+
observers.delete(subscription);
|
|
426
|
+
},
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
|
|
415
430
|
type LogBoxStateSubscriptionProps = $ReadOnly<{}>;
|
|
416
431
|
type LogBoxStateSubscriptionState = $ReadOnly<{
|
|
417
432
|
logs: LogBoxLogs,
|
|
@@ -447,12 +462,11 @@ export function withSubscription(
|
|
|
447
462
|
}
|
|
448
463
|
|
|
449
464
|
_subscription: ?Subscription;
|
|
465
|
+
_updateStateOnMountTimeoutId: ?TimeoutID;
|
|
450
466
|
|
|
451
467
|
state: LogBoxStateSubscriptionState = {
|
|
452
|
-
logs: new Set(),
|
|
453
|
-
isDisabled: false,
|
|
454
468
|
hasError: false,
|
|
455
|
-
|
|
469
|
+
...getNextState(),
|
|
456
470
|
};
|
|
457
471
|
|
|
458
472
|
render(): React.Node {
|
|
@@ -472,12 +486,25 @@ export function withSubscription(
|
|
|
472
486
|
}
|
|
473
487
|
|
|
474
488
|
componentDidMount(): void {
|
|
475
|
-
this._subscription =
|
|
489
|
+
this._subscription = observeNext(data => {
|
|
476
490
|
this.setState(data);
|
|
477
491
|
});
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* This should cover the case when the state changes in between the first render and mount effect.
|
|
495
|
+
* We defer the state update to next task to avoid cascading update.
|
|
496
|
+
*/
|
|
497
|
+
this._updateStateOnMountTimeoutId = setTimeout(() => {
|
|
498
|
+
this._updateStateOnMountTimeoutId = null;
|
|
499
|
+
this.setState(getNextState());
|
|
500
|
+
}, 0);
|
|
478
501
|
}
|
|
479
502
|
|
|
480
503
|
componentWillUnmount(): void {
|
|
504
|
+
if (this._updateStateOnMountTimeoutId != null) {
|
|
505
|
+
clearTimeout(this._updateStateOnMountTimeoutId);
|
|
506
|
+
}
|
|
507
|
+
|
|
481
508
|
if (this._subscription != null) {
|
|
482
509
|
this._subscription.unsubscribe();
|
|
483
510
|
}
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
|
|
14
14
|
#import "RCTAnimationPlugins.h"
|
|
15
15
|
|
|
16
|
-
#import <
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
auto p = sCoreModuleClassMap->find(name);
|
|
27
|
-
if (p != sCoreModuleClassMap->end()) {
|
|
28
|
-
auto classFunc = p->second;
|
|
29
|
-
return classFunc();
|
|
16
|
+
#import <string_view>
|
|
17
|
+
|
|
18
|
+
using namespace std::literals;
|
|
19
|
+
|
|
20
|
+
Class RCTAnimationClassProvider(const char *name)
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
if (name == "NativeAnimatedModule"sv) {
|
|
24
|
+
return RCTNativeAnimatedModuleCls();
|
|
30
25
|
}
|
|
26
|
+
|
|
27
|
+
if (name == "NativeAnimatedTurboModule"sv) {
|
|
28
|
+
return RCTNativeAnimatedTurboModuleCls();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
31
|
return nil;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -30,10 +30,7 @@ typedef void (^AnimatedOperation)(RCTNativeAnimatedNodesManager *nodesManager);
|
|
|
30
30
|
NSMutableDictionary<NSNumber *, NSNumber *> *_animIdIsManagedByFabric;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
return @"NativeAnimatedModule";
|
|
36
|
-
}
|
|
33
|
+
RCT_EXPORT_MODULE();
|
|
37
34
|
|
|
38
35
|
+ (BOOL)requiresMainQueueSetup
|
|
39
36
|
{
|
|
@@ -30,10 +30,7 @@ typedef void (^AnimatedOperation)(RCTNativeAnimatedNodesManager *nodesManager);
|
|
|
30
30
|
NSSet<NSString *> *_userDrivenAnimationEndedEvents;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
return @"NativeAnimatedTurboModule";
|
|
36
|
-
}
|
|
33
|
+
RCT_EXPORT_MODULE();
|
|
37
34
|
|
|
38
35
|
+ (BOOL)requiresMainQueueSetup
|
|
39
36
|
{
|
|
@@ -33,10 +33,7 @@ void RCTSetCustomNSURLSessionConfigurationProvider(NSURLSessionConfigurationProv
|
|
|
33
33
|
|
|
34
34
|
@synthesize moduleRegistry = _moduleRegistry;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
return @"HTTPRequestHandler";
|
|
39
|
-
}
|
|
36
|
+
RCT_EXPORT_MODULE()
|
|
40
37
|
|
|
41
38
|
- (void)invalidate
|
|
42
39
|
{
|
|
@@ -13,23 +13,29 @@
|
|
|
13
13
|
|
|
14
14
|
#import "RCTNetworkPlugins.h"
|
|
15
15
|
|
|
16
|
-
#import <
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (p != sCoreModuleClassMap->end()) {
|
|
30
|
-
auto classFunc = p->second;
|
|
31
|
-
return classFunc();
|
|
16
|
+
#import <string_view>
|
|
17
|
+
|
|
18
|
+
using namespace std::literals;
|
|
19
|
+
|
|
20
|
+
Class RCTNetworkClassProvider(const char *name)
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
if (name == "DataRequestHandler"sv) {
|
|
24
|
+
return RCTDataRequestHandlerCls();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (name == "FileRequestHandler"sv) {
|
|
28
|
+
return RCTFileRequestHandlerCls();
|
|
32
29
|
}
|
|
30
|
+
|
|
31
|
+
if (name == "HTTPRequestHandler"sv) {
|
|
32
|
+
return RCTHTTPRequestHandlerCls();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (name == "Networking"sv) {
|
|
36
|
+
return RCTNetworkingCls();
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
return nil;
|
|
34
40
|
}
|
|
35
41
|
|
|
@@ -154,10 +154,7 @@ static BOOL IsNotificationRemote(UNNotification *notification)
|
|
|
154
154
|
return [notification.request.trigger isKindOfClass:[UNPushNotificationTrigger class]];
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
{
|
|
159
|
-
return @"PushNotificationManager";
|
|
160
|
-
}
|
|
157
|
+
RCT_EXPORT_MODULE()
|
|
161
158
|
|
|
162
159
|
- (dispatch_queue_t)methodQueue
|
|
163
160
|
{
|
|
@@ -13,20 +13,17 @@
|
|
|
13
13
|
|
|
14
14
|
#import "RCTPushNotificationPlugins.h"
|
|
15
15
|
|
|
16
|
-
#import <
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
auto p = sCoreModuleClassMap->find(name);
|
|
26
|
-
if (p != sCoreModuleClassMap->end()) {
|
|
27
|
-
auto classFunc = p->second;
|
|
28
|
-
return classFunc();
|
|
16
|
+
#import <string_view>
|
|
17
|
+
|
|
18
|
+
using namespace std::literals;
|
|
19
|
+
|
|
20
|
+
Class RCTPushNotificationClassProvider(const char *name)
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
if (name == "PushNotificationManager"sv) {
|
|
24
|
+
return RCTPushNotificationManagerCls();
|
|
29
25
|
}
|
|
26
|
+
|
|
30
27
|
return nil;
|
|
31
28
|
}
|
|
32
29
|
|
|
@@ -13,20 +13,17 @@
|
|
|
13
13
|
|
|
14
14
|
#import "RCTSettingsPlugins.h"
|
|
15
15
|
|
|
16
|
-
#import <
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
auto p = sCoreModuleClassMap->find(name);
|
|
26
|
-
if (p != sCoreModuleClassMap->end()) {
|
|
27
|
-
auto classFunc = p->second;
|
|
28
|
-
return classFunc();
|
|
16
|
+
#import <string_view>
|
|
17
|
+
|
|
18
|
+
using namespace std::literals;
|
|
19
|
+
|
|
20
|
+
Class RCTSettingsClassProvider(const char *name)
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
if (name == "SettingsManager"sv) {
|
|
24
|
+
return RCTSettingsManagerCls();
|
|
29
25
|
}
|
|
26
|
+
|
|
30
27
|
return nil;
|
|
31
28
|
}
|
|
32
29
|
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import type {ProcessedColorValue} from './processColor';
|
|
12
|
-
import type {
|
|
12
|
+
import type {NativeColorValue} from './StyleSheet';
|
|
13
13
|
|
|
14
14
|
/** The actual type of the opaque NativeColorValue on Android platform */
|
|
15
15
|
type LocalNativeColorValue = {
|
|
16
16
|
resource_paths?: Array<string>,
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export const PlatformColor = (...names: Array<string>):
|
|
19
|
+
export const PlatformColor = (...names: Array<string>): NativeColorValue => {
|
|
20
20
|
/* $FlowExpectedError[incompatible-type]
|
|
21
21
|
* LocalNativeColorValue is the actual type of the opaque NativeColorValue on Android platform */
|
|
22
22
|
return ({resource_paths: names}: LocalNativeColorValue);
|
|
@@ -22,7 +22,7 @@ type LocalNativeColorValue = {
|
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
export const PlatformColor = (...names: Array<string>):
|
|
25
|
+
export const PlatformColor = (...names: Array<string>): NativeColorValue => {
|
|
26
26
|
// $FlowExpectedError[incompatible-type] LocalNativeColorValue is the iOS LocalNativeColorValue type
|
|
27
27
|
return ({semantic: names}: LocalNativeColorValue);
|
|
28
28
|
};
|
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import type {ProcessedColorValue} from './processColor';
|
|
12
|
-
import type {
|
|
12
|
+
import type {NativeColorValue} from './StyleSheet';
|
|
13
13
|
|
|
14
|
-
declare export function PlatformColor(
|
|
14
|
+
declare export function PlatformColor(
|
|
15
|
+
...names: Array<string>
|
|
16
|
+
): NativeColorValue;
|
|
15
17
|
|
|
16
18
|
declare export function normalizeColorObject(
|
|
17
19
|
color: NativeColorValue,
|