react-native 0.82.0-nightly-20250828-502325fbc → 0.82.0-nightly-20250830-d3574313c
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/AppDelegate/RCTRootViewFactory.mm +2 -2
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +2 -0
- package/Libraries/Image/RCTImageShadowView.h +1 -0
- package/Libraries/Image/RCTImageView.h +1 -0
- package/Libraries/Image/RCTImageViewManager.h +1 -0
- package/Libraries/Text/BaseText/RCTBaseTextShadowView.h +3 -1
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.h +1 -0
- package/Libraries/Text/RCTTextAttributes.h +6 -3
- package/Libraries/Text/RawText/RCTRawTextShadowView.h +1 -0
- package/Libraries/Text/RawText/RCTRawTextViewManager.h +1 -0
- package/Libraries/Text/Text/RCTTextShadowView.h +1 -0
- package/Libraries/Text/Text/RCTTextView.h +1 -0
- package/Libraries/Text/Text/RCTTextViewManager.h +1 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +1 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h +1 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h +1 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +2 -1
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h +1 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h +1 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryView.h +1 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h +1 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h +1 -0
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h +1 -0
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h +1 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h +1 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextView.h +1 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h +1 -0
- package/Libraries/Utilities/Appearance.d.ts +3 -5
- package/Libraries/Utilities/Appearance.js +5 -17
- package/Libraries/Wrapper/Example/RCTWrapperExampleView.h +1 -0
- package/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h +1 -0
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.h +1 -0
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.h +1 -0
- package/Libraries/Wrapper/RCTWrapper.h +24 -23
- package/Libraries/Wrapper/RCTWrapperShadowView.h +1 -0
- package/Libraries/Wrapper/RCTWrapperView.h +3 -1
- package/Libraries/Wrapper/RCTWrapperViewControllerHostingView.h +1 -0
- package/Libraries/Wrapper/RCTWrapperViewManager.h +1 -0
- package/React/Base/RCTBridge+Private.h +4 -2
- package/React/Base/RCTBridge.h +5 -2
- package/React/Base/RCTBridgeDelegate.h +14 -6
- package/React/Base/RCTJavaScriptExecutor.h +6 -3
- package/React/Base/RCTModuleData.h +29 -15
- package/React/Base/RCTRootContentView.h +15 -8
- package/React/Base/RCTRootView.h +1 -1
- package/React/Base/RCTRootViewInternal.h +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/RCTSurface.h +2 -1
- package/React/Base/Surface/RCTSurfaceRootShadowView.h +4 -2
- package/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.h +1 -0
- package/React/CxxBridge/RCTObjcExecutor.h +3 -1
- package/React/CxxModule/DispatchMessageQueueThread.h +2 -1
- package/React/CxxModule/RCTCxxUtils.h +1 -0
- package/React/CxxModule/RCTNativeModule.h +3 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTVirtualViewContainerState.mm +1 -4
- package/React/Fabric/RCTSurfacePresenter.mm +1 -1
- package/React/Profiler/RCTProfile.h +45 -28
- package/React/Views/RCTActivityIndicatorView.h +1 -0
- package/React/Views/RCTActivityIndicatorViewManager.h +1 -0
- package/React/Views/RCTDebuggingOverlayManager.h +1 -0
- package/React/Views/RCTModalHostView.h +2 -1
- package/React/Views/RCTModalHostViewController.h +1 -0
- package/React/Views/RCTModalHostViewManager.h +4 -2
- package/React/Views/RCTModalManager.h +2 -1
- package/React/Views/RCTRootShadowView.h +1 -0
- package/React/Views/RCTSwitch.h +1 -0
- package/React/Views/RCTSwitchManager.h +1 -0
- package/React/Views/RefreshControl/RCTRefreshControl.h +2 -1
- package/React/Views/RefreshControl/RCTRefreshControlManager.h +1 -0
- package/React/Views/SafeAreaView/RCTSafeAreaShadowView.h +1 -0
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -0
- package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -0
- package/React/Views/SafeAreaView/RCTSafeAreaViewManager.h +1 -0
- package/React/Views/ScrollView/RCTScrollContentShadowView.h +1 -0
- package/React/Views/ScrollView/RCTScrollContentView.h +1 -0
- package/React/Views/ScrollView/RCTScrollContentViewManager.h +1 -0
- package/React/Views/ScrollView/RCTScrollView.h +2 -1
- package/React/Views/ScrollView/RCTScrollViewManager.h +2 -0
- package/ReactAndroid/api/ReactAndroid.api +14 -16
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgelessDevSupportManager.kt +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.kt +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.kt +70 -27
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PerfMonitorOverlayViewManager.kt +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReleaseDevSupportManager.kt +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName.kt +9 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.kt +8 -5
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/TracingState.kt +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/TracingStateProvider.kt +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorInspectorTargetBinding.kt +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorUpdateListener.kt +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt +2 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.kt +23 -14
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImplDevHelper.kt +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostInspectorTarget.kt +19 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VirtualViewContainer.kt +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/virtual/viewexperimental/ReactVirtualViewExperimental.kt +21 -3
- package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/hermes/reactexecutor/OnLoad.cpp +8 -3
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +3 -1
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +6 -2
- package/ReactAndroid/src/main/jni/react/jni/JavaModuleWrapper.h +9 -3
- package/ReactAndroid/src/main/jni/react/jni/JavaScriptExecutorHolder.h +2 -1
- package/ReactAndroid/src/main/jni/react/jni/JniJSModulesUnbundle.h +3 -1
- package/ReactAndroid/src/main/jni/react/jni/MethodInvoker.cpp +3 -0
- package/ReactAndroid/src/main/jni/react/jni/MethodInvoker.h +8 -3
- package/ReactAndroid/src/main/jni/react/jni/ModuleRegistryBuilder.h +4 -1
- package/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp +3 -0
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.cpp +7 -0
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.h +13 -0
- package/ReactAndroid/src/main/res/devsupport/values/strings.xml +3 -0
- package/ReactAndroid/src/main/res/views/uimanager/values-am/strings.xml +1 -0
- package/ReactCommon/cxxreact/CxxNativeModule.h +4 -1
- package/ReactCommon/cxxreact/Instance.h +5 -2
- package/ReactCommon/cxxreact/JSExecutor.h +6 -3
- package/ReactCommon/cxxreact/JSIndexedRAMBundle.h +3 -1
- package/ReactCommon/cxxreact/JSModulesUnbundle.h +2 -1
- package/ReactCommon/cxxreact/MethodCall.h +3 -1
- package/ReactCommon/cxxreact/ModuleRegistry.h +4 -2
- package/ReactCommon/cxxreact/NativeModule.h +4 -2
- package/ReactCommon/cxxreact/NativeToJsBridge.cpp +3 -1
- package/ReactCommon/cxxreact/NativeToJsBridge.h +2 -1
- package/ReactCommon/cxxreact/RAMBundleRegistry.h +2 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/executor/HermesExecutorFactory.h +6 -2
- package/ReactCommon/jsi/jsi/decorator.h +23 -0
- package/ReactCommon/jsi/jsi/jsi-inl.h +14 -0
- package/ReactCommon/jsi/jsi/jsi.cpp +27 -0
- package/ReactCommon/jsi/jsi/jsi.h +29 -1
- package/ReactCommon/jsi/jsi/test/testlib.cpp +51 -0
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +3 -1
- package/ReactCommon/jsiexecutor/jsireact/JSINativeModules.h +2 -1
- package/ReactCommon/jsinspector-modern/HostTarget.h +6 -0
- package/ReactCommon/jsinspector-modern/HostTargetTracing.cpp +16 -0
- package/ReactCommon/jsinspector-modern/tracing/TracingState.h +24 -0
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewShadowNode.cpp +5 -3
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawValue.h +6 -22
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +2 -2
- package/ReactCommon/react/renderer/core/tests/RawValueTest.cpp +26 -0
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/HostPlatformColor.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/HostPlatformColor.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h +8 -8
- package/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm +11 -11
- package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageFetcher.cpp +13 -17
- package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageFetcher.h +2 -1
- package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageManager.cpp +12 -2
- package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageRequestParams.h +7 -0
- package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/conversions.h +31 -12
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +9 -0
- package/ReactCommon/react/runtime/ReactInstance.cpp +3 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfettoLogger.cpp +5 -0
- package/package.json +8 -8
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/src/private/components/virtualview/VirtualView.js +14 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +7 -1
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +4 -4
- package/types_generated/Libraries/Utilities/Appearance.d.ts +2 -2
- package/ReactAndroid/src/main/jni/react/jni/CxxSharedModuleWrapper.h +0 -37
- package/ReactCommon/cxxreact/SharedProxyCxxModule.h +0 -40
|
@@ -194,8 +194,8 @@
|
|
|
194
194
|
RCTTurboModuleManager *turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge
|
|
195
195
|
delegate:_turboModuleManagerDelegate
|
|
196
196
|
jsInvoker:callInvoker];
|
|
197
|
-
_contextContainer->erase(
|
|
198
|
-
_contextContainer->insert(
|
|
197
|
+
_contextContainer->erase(facebook::react::RuntimeSchedulerKey);
|
|
198
|
+
_contextContainer->insert(facebook::react::RuntimeSchedulerKey, _runtimeScheduler);
|
|
199
199
|
return RCTAppSetupDefaultJsExecutorFactory(bridge, turboModuleManager, _runtimeScheduler);
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
|
|
|
29
29
|
static major: number = 0;
|
|
30
30
|
static minor: number = 82;
|
|
31
31
|
static patch: number = 0;
|
|
32
|
-
static prerelease: string | null = 'nightly-
|
|
32
|
+
static prerelease: string | null = 'nightly-20250830-d3574313c';
|
|
33
33
|
|
|
34
34
|
static getVersionString(): string {
|
|
35
35
|
return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
|
|
@@ -477,8 +477,10 @@ if (!NativeTiming) {
|
|
|
477
477
|
ExportedJSTimers = ({
|
|
478
478
|
callReactNativeMicrotasks: JSTimers.callReactNativeMicrotasks,
|
|
479
479
|
queueReactNativeMicrotask: JSTimers.queueReactNativeMicrotask,
|
|
480
|
+
// $FlowFixMe[incompatible-variance]
|
|
480
481
|
}: typeof JSTimers);
|
|
481
482
|
} else {
|
|
483
|
+
// $FlowFixMe[incompatible-variance]
|
|
482
484
|
ExportedJSTimers = JSTimers;
|
|
483
485
|
}
|
|
484
486
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
@class RCTBridge;
|
|
15
15
|
@class RCTImageSource;
|
|
16
16
|
|
|
17
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
|
|
17
18
|
@interface RCTImageView : RCTView
|
|
18
19
|
|
|
19
20
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
NS_ASSUME_NONNULL_BEGIN
|
|
15
15
|
|
|
16
|
-
extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName
|
|
16
|
+
extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName
|
|
17
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")));
|
|
17
18
|
|
|
19
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
|
|
18
20
|
@interface RCTBaseTextShadowView : RCTShadowView {
|
|
19
21
|
@protected
|
|
20
22
|
NSAttributedString *_Nullable cachedAttributedText;
|
|
@@ -15,15 +15,18 @@
|
|
|
15
15
|
|
|
16
16
|
NS_ASSUME_NONNULL_BEGIN
|
|
17
17
|
|
|
18
|
-
extern NSString *const RCTTextAttributesIsHighlightedAttributeName
|
|
19
|
-
|
|
18
|
+
extern NSString *const RCTTextAttributesIsHighlightedAttributeName
|
|
19
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")));
|
|
20
|
+
extern NSString *const RCTTextAttributesTagAttributeName
|
|
21
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")));
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* Represents knowledge about all supported *text* attributes
|
|
23
25
|
* assigned to some text component such as <Text>, <VirtualText>,
|
|
24
26
|
* and <TextInput>.
|
|
25
27
|
*/
|
|
26
|
-
|
|
28
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
|
|
29
|
+
@interface RCTTextAttributes : NSObject<NSCopying>
|
|
27
30
|
|
|
28
31
|
// Color
|
|
29
32
|
@property (nonatomic, strong, nullable) UIColor *foregroundColor;
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
NS_ASSUME_NONNULL_BEGIN
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
|
|
24
|
+
@interface RCTBaseTextInputView : RCTView<RCTBackedTextInputDelegate>
|
|
24
25
|
|
|
25
26
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
|
26
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import {NativeEventSubscription} from '../EventEmitter/RCTNativeAppEventEmitter';
|
|
11
11
|
|
|
12
|
-
type ColorSchemeName = 'light' | 'dark' |
|
|
12
|
+
type ColorSchemeName = 'light' | 'dark' | 'unspecified';
|
|
13
13
|
|
|
14
14
|
export namespace Appearance {
|
|
15
15
|
type AppearancePreferences = {
|
|
@@ -26,7 +26,7 @@ export namespace Appearance {
|
|
|
26
26
|
*
|
|
27
27
|
* Example: `const colorScheme = Appearance.getColorScheme();`
|
|
28
28
|
*/
|
|
29
|
-
export function getColorScheme(): ColorSchemeName;
|
|
29
|
+
export function getColorScheme(): ColorSchemeName | null | undefined;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Set the color scheme preference. This is useful for overriding the default
|
|
@@ -34,9 +34,7 @@ export namespace Appearance {
|
|
|
34
34
|
* appearance of the system UI, only the appearance of the app.
|
|
35
35
|
* Only available on iOS 13+ and Android 10+.
|
|
36
36
|
*/
|
|
37
|
-
export function setColorScheme(
|
|
38
|
-
scheme: ColorSchemeName | null | undefined,
|
|
39
|
-
): void;
|
|
37
|
+
export function setColorScheme(scheme: ColorSchemeName): void;
|
|
40
38
|
|
|
41
39
|
/**
|
|
42
40
|
* Add an event handler that is fired when appearance preferences change.
|
|
@@ -14,7 +14,6 @@ import typeof INativeAppearance from './NativeAppearance';
|
|
|
14
14
|
|
|
15
15
|
import NativeEventEmitter from '../EventEmitter/NativeEventEmitter';
|
|
16
16
|
import EventEmitter from '../vendor/emitter/EventEmitter';
|
|
17
|
-
import invariant from 'invariant';
|
|
18
17
|
|
|
19
18
|
export type {AppearancePreferences};
|
|
20
19
|
|
|
@@ -60,7 +59,7 @@ function getState(): $NonMaybeType<typeof lazyState> {
|
|
|
60
59
|
appearanceChanged: [AppearancePreferences],
|
|
61
60
|
}>(NativeAppearance).addListener('appearanceChanged', newAppearance => {
|
|
62
61
|
state.appearance = {
|
|
63
|
-
colorScheme:
|
|
62
|
+
colorScheme: newAppearance.colorScheme,
|
|
64
63
|
};
|
|
65
64
|
eventEmitter.emit('change', state.appearance);
|
|
66
65
|
});
|
|
@@ -83,7 +82,7 @@ export function getColorScheme(): ?ColorSchemeName {
|
|
|
83
82
|
// Lazily initialize `state.appearance`. This should only
|
|
84
83
|
// happen once because we never reassign a null value to it.
|
|
85
84
|
state.appearance = {
|
|
86
|
-
colorScheme:
|
|
85
|
+
colorScheme: NativeAppearance.getColorScheme(),
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
88
|
colorScheme = state.appearance.colorScheme;
|
|
@@ -94,13 +93,13 @@ export function getColorScheme(): ?ColorSchemeName {
|
|
|
94
93
|
/**
|
|
95
94
|
* Updates the current color scheme to the supplied value.
|
|
96
95
|
*/
|
|
97
|
-
export function setColorScheme(colorScheme:
|
|
96
|
+
export function setColorScheme(colorScheme: ColorSchemeName): void {
|
|
98
97
|
const state = getState();
|
|
99
98
|
const {NativeAppearance} = state;
|
|
100
99
|
if (NativeAppearance != null) {
|
|
101
|
-
NativeAppearance.setColorScheme(colorScheme
|
|
100
|
+
NativeAppearance.setColorScheme(colorScheme);
|
|
102
101
|
state.appearance = {
|
|
103
|
-
colorScheme
|
|
102
|
+
colorScheme,
|
|
104
103
|
};
|
|
105
104
|
}
|
|
106
105
|
}
|
|
@@ -114,14 +113,3 @@ export function addChangeListener(
|
|
|
114
113
|
const {eventEmitter} = getState();
|
|
115
114
|
return eventEmitter.addListener('change', listener);
|
|
116
115
|
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union
|
|
120
|
-
*/
|
|
121
|
-
function toColorScheme(colorScheme: ?string): ?ColorSchemeName {
|
|
122
|
-
invariant(
|
|
123
|
-
colorScheme === 'dark' || colorScheme === 'light' || colorScheme == null,
|
|
124
|
-
"Unrecognized color scheme. Did you mean 'dark', 'light' or null?",
|
|
125
|
-
);
|
|
126
|
-
return colorScheme;
|
|
127
|
-
}
|
|
@@ -16,29 +16,29 @@
|
|
|
16
16
|
// Umbrella header with macros
|
|
17
17
|
|
|
18
18
|
// RCT_WRAPPER_FOR_VIEW
|
|
19
|
-
#define RCT_WRAPPER_FOR_VIEW(ClassName)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@interface ClassName
|
|
24
|
-
##Manager : RCTWrapperViewManager
|
|
25
|
-
|
|
26
|
-
@end
|
|
27
|
-
|
|
28
|
-
NS_ASSUME_NONNULL_END
|
|
29
|
-
|
|
30
|
-
@implementation ClassName
|
|
31
|
-
##Manager
|
|
32
|
-
|
|
33
|
-
RCT_EXPORT_MODULE()
|
|
34
|
-
|
|
35
|
-
- (UIView *)view
|
|
36
|
-
{
|
|
37
|
-
RCTWrapperView *wrapperView = [super view];
|
|
38
|
-
wrapperView.contentView = [ClassName new];
|
|
39
|
-
return wrapperView;
|
|
40
|
-
}
|
|
41
|
-
|
|
19
|
+
#define RCT_WRAPPER_FOR_VIEW(ClassName) \
|
|
20
|
+
NS_ASSUME_NONNULL_BEGIN \
|
|
21
|
+
\
|
|
22
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture."))) \
|
|
23
|
+
@interface ClassName \
|
|
24
|
+
##Manager : RCTWrapperViewManager \
|
|
25
|
+
\
|
|
26
|
+
@end \
|
|
27
|
+
\
|
|
28
|
+
NS_ASSUME_NONNULL_END \
|
|
29
|
+
\
|
|
30
|
+
@implementation ClassName \
|
|
31
|
+
##Manager \
|
|
32
|
+
\
|
|
33
|
+
RCT_EXPORT_MODULE() \
|
|
34
|
+
\
|
|
35
|
+
- (UIView *)view \
|
|
36
|
+
{ \
|
|
37
|
+
RCTWrapperView *wrapperView = [super view]; \
|
|
38
|
+
wrapperView.contentView = [ClassName new]; \
|
|
39
|
+
return wrapperView; \
|
|
40
|
+
} \
|
|
41
|
+
\
|
|
42
42
|
@end
|
|
43
43
|
|
|
44
44
|
// RCT_WRAPPER_FOR_VIEW_CONTROLLER
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
\
|
|
47
47
|
NS_ASSUME_NONNULL_BEGIN \
|
|
48
48
|
\
|
|
49
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture."))) \
|
|
49
50
|
@interface ClassName \
|
|
50
51
|
##Manager : RCTWrapperViewManager \
|
|
51
52
|
\
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
NS_ASSUME_NONNULL_BEGIN
|
|
17
17
|
|
|
18
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
|
|
18
19
|
@interface RCTWrapperShadowView : RCTShadowView
|
|
19
20
|
|
|
20
21
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
#ifndef RCT_FIT_RM_OLD_COMPONENT
|
|
11
11
|
|
|
12
|
-
typedef CGSize (^RCTWrapperMeasureBlock)(CGSize minimumSize, CGSize maximumSize)
|
|
12
|
+
typedef CGSize (^RCTWrapperMeasureBlock)(CGSize minimumSize, CGSize maximumSize)
|
|
13
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")));
|
|
13
14
|
|
|
14
15
|
@class RCTBridge;
|
|
15
16
|
|
|
16
17
|
NS_ASSUME_NONNULL_BEGIN
|
|
17
18
|
|
|
19
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
|
|
18
20
|
@interface RCTWrapperView : UIView
|
|
19
21
|
|
|
20
22
|
@property (nonatomic, retain, nullable) UIView *contentView;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
|
|
14
15
|
@interface RCTWrapperViewControllerHostingView : UIView
|
|
15
16
|
|
|
16
17
|
@property (nonatomic, retain, nullable) UIViewController *contentViewController;
|
|
@@ -21,7 +21,8 @@ RCT_EXTERN void RCTRegisterModule(Class);
|
|
|
21
21
|
- (instancetype)initWithDelegate:(id<RCTBridgeDelegate>)delegate
|
|
22
22
|
bundleURL:(NSURL *)bundleURL
|
|
23
23
|
moduleProvider:(RCTBridgeModuleListProvider)block
|
|
24
|
-
launchOptions:(NSDictionary *)launchOptions NS_DESIGNATED_INITIALIZER
|
|
24
|
+
launchOptions:(NSDictionary *)launchOptions NS_DESIGNATED_INITIALIZER
|
|
25
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
25
26
|
|
|
26
27
|
#endif // RCT_FIT_RM_OLD_RUNTIME
|
|
27
28
|
|
|
@@ -150,7 +151,8 @@ RCT_EXTERN void RCTRegisterModule(Class);
|
|
|
150
151
|
@property (nonatomic, readonly) void *runtime;
|
|
151
152
|
|
|
152
153
|
#ifndef RCT_FIT_RM_OLD_RUNTIME
|
|
153
|
-
- (instancetype)initWithParentBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER
|
|
154
|
+
- (instancetype)initWithParentBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER
|
|
155
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
154
156
|
#endif // RCT_FIT_RM_OLD_RUNTIME
|
|
155
157
|
|
|
156
158
|
@end
|
package/React/Base/RCTBridge.h
CHANGED
|
@@ -107,7 +107,9 @@ RCT_EXTERN_C_END
|
|
|
107
107
|
* pre-initialized module instances if they require additional init parameters
|
|
108
108
|
* or configuration.
|
|
109
109
|
*/
|
|
110
|
-
- (instancetype)initWithDelegate:(id<RCTBridgeDelegate>)delegate
|
|
110
|
+
- (instancetype)initWithDelegate:(id<RCTBridgeDelegate>)delegate
|
|
111
|
+
launchOptions:(NSDictionary *)launchOptions
|
|
112
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
111
113
|
|
|
112
114
|
/**
|
|
113
115
|
* DEPRECATED: Use initWithDelegate:launchOptions: instead
|
|
@@ -121,7 +123,8 @@ RCT_EXTERN_C_END
|
|
|
121
123
|
*/
|
|
122
124
|
- (instancetype)initWithBundleURL:(NSURL *)bundleURL
|
|
123
125
|
moduleProvider:(RCTBridgeModuleListProvider)block
|
|
124
|
-
launchOptions:(NSDictionary *)launchOptions
|
|
126
|
+
launchOptions:(NSDictionary *)launchOptions
|
|
127
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
125
128
|
|
|
126
129
|
/**
|
|
127
130
|
* This method is used to call functions in the JavaScript application context.
|
|
@@ -21,7 +21,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
21
21
|
* When running from a locally bundled JS file, this should be a `file://` url
|
|
22
22
|
* pointing to a path inside the app resources, e.g. `file://.../main.jsbundle`.
|
|
23
23
|
*/
|
|
24
|
-
- (NSURL *__nullable)sourceURLForBridge:(RCTBridge *)bridge
|
|
24
|
+
- (NSURL *__nullable)sourceURLForBridge:(RCTBridge *)bridge
|
|
25
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
25
26
|
|
|
26
27
|
@optional
|
|
27
28
|
|
|
@@ -39,7 +40,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
39
40
|
* not recommended in most cases - if the module methods and behavior do not
|
|
40
41
|
* match exactly, it may lead to bugs or crashes.
|
|
41
42
|
*/
|
|
42
|
-
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
|
|
43
|
+
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
|
|
44
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
43
45
|
|
|
44
46
|
/**
|
|
45
47
|
* The bridge will call this method when a module been called from JS
|
|
@@ -48,7 +50,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
48
50
|
* in the implementation, and the system must attempt to look for it again among registered.
|
|
49
51
|
* If the module was not registered, return NO to prevent further searches.
|
|
50
52
|
*/
|
|
51
|
-
- (BOOL)bridge:(RCTBridge *)bridge
|
|
53
|
+
- (BOOL)bridge:(RCTBridge *)bridge
|
|
54
|
+
didNotFindModule:(NSString *)moduleName
|
|
55
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
52
56
|
|
|
53
57
|
/**
|
|
54
58
|
* The bridge will automatically attempt to load the JS source code from the
|
|
@@ -57,18 +61,22 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
57
61
|
*/
|
|
58
62
|
- (void)loadSourceForBridge:(RCTBridge *)bridge
|
|
59
63
|
onProgress:(RCTSourceLoadProgressBlock)onProgress
|
|
60
|
-
onComplete:(RCTSourceLoadBlock)loadCallback
|
|
64
|
+
onComplete:(RCTSourceLoadBlock)loadCallback
|
|
65
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
61
66
|
|
|
62
67
|
/**
|
|
63
68
|
* Similar to loadSourceForBridge:onProgress:onComplete: but without progress
|
|
64
69
|
* reporting.
|
|
65
70
|
*/
|
|
66
|
-
- (void)loadSourceForBridge:(RCTBridge *)bridge
|
|
71
|
+
- (void)loadSourceForBridge:(RCTBridge *)bridge
|
|
72
|
+
withBlock:(RCTSourceLoadBlock)loadCallback
|
|
73
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
67
74
|
|
|
68
75
|
/**
|
|
69
76
|
* Retrieve the list of lazy-native-modules names for the given bridge.
|
|
70
77
|
*/
|
|
71
|
-
- (NSDictionary<NSString *, Class> *)extraLazyModuleClassesForBridge:(RCTBridge *)bridge
|
|
78
|
+
- (NSDictionary<NSString *, Class> *)extraLazyModuleClassesForBridge:(RCTBridge *)bridge
|
|
79
|
+
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
|
72
80
|
|
|
73
81
|
#endif // RCT_FIT_RM_OLD_RUNTIME
|
|
74
82
|
@end
|
|
@@ -10,15 +10,18 @@
|
|
|
10
10
|
#import <React/RCTBridgeModule.h>
|
|
11
11
|
#import <React/RCTInvalidating.h>
|
|
12
12
|
|
|
13
|
-
typedef void (^RCTJavaScriptCompleteBlock)(NSError *
|
|
14
|
-
|
|
13
|
+
typedef void (^RCTJavaScriptCompleteBlock)(NSError *__strong)
|
|
14
|
+
__deprecated_msg("This api will be removed along with the bridge.");
|
|
15
|
+
typedef void (^RCTJavaScriptCallback)(__strong id, NSError *__strong)
|
|
16
|
+
__deprecated_msg("This api will be removed along with the bridge.");
|
|
15
17
|
|
|
16
18
|
#ifndef RCT_FIT_RM_OLD_RUNTIME
|
|
17
19
|
/**
|
|
18
20
|
* Abstracts away a JavaScript execution context - we may be running code in a
|
|
19
21
|
* web view (for debugging purposes), or may be running code in a `JSContext`.
|
|
20
22
|
*/
|
|
21
|
-
|
|
23
|
+
__deprecated_msg("This api will be removed along with the bridge.")
|
|
24
|
+
@protocol RCTJavaScriptExecutor<RCTInvalidating, RCTBridgeModule>
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* Used to set up the executor after the bridge has been fully initialized.
|