@office-iss/react-native-win32 0.0.0-canary.283 → 0.0.0-canary.284
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/.flowconfig +1 -1
- package/CHANGELOG.json +40 -1
- package/CHANGELOG.md +20 -8
- package/IntegrationTests/AccessibilityManagerTest.js +17 -12
- package/IntegrationTests/AppEventsTest.js +47 -32
- package/IntegrationTests/GlobalEvalWithSourceUrlTest.js +10 -14
- package/IntegrationTests/ImageCachePolicyTest.js +64 -81
- package/IntegrationTests/ImageSnapshotTest.js +17 -20
- package/IntegrationTests/IntegrationTestHarnessTest.js +34 -52
- package/IntegrationTests/IntegrationTestsApp.js +11 -6
- package/IntegrationTests/LayoutEventsTest.js +1 -1
- package/IntegrationTests/LoggingTestModule.js +2 -1
- package/IntegrationTests/PromiseTest.js +51 -43
- package/IntegrationTests/SimpleSnapshotTest.js +19 -24
- package/IntegrationTests/SyncMethodTest.js +9 -13
- package/IntegrationTests/TimersTest.js +3 -3
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +3 -3
- package/Libraries/Alert/Alert.js +1 -1
- package/Libraries/Alert/Alert.win32.js +1 -1
- package/Libraries/Alert/RCTAlertManager.android.js +1 -1
- package/Libraries/Alert/RCTAlertManager.ios.js +1 -1
- package/Libraries/Animated/AnimatedMock.js +1 -1
- package/Libraries/Animated/AnimatedWeb.js +27 -9
- package/Libraries/Animated/nodes/AnimatedValue.js +35 -13
- package/Libraries/Animated/useAnimatedProps.js +47 -85
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/BatchedBridge/BatchedBridge.js +4 -2
- package/Libraries/BatchedBridge/MessageQueue.js +2 -2
- package/Libraries/BatchedBridge/NativeModules.js +4 -3
- package/Libraries/Blob/Blob.js +4 -4
- package/Libraries/Blob/BlobManager.js +3 -2
- package/Libraries/Blob/BlobRegistry.js +3 -9
- package/Libraries/Blob/File.js +3 -2
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/BugReporting/BugReporting.js +2 -2
- package/Libraries/BugReporting/dumpReactTree.js +2 -2
- package/Libraries/BugReporting/getReactData.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.win32.js +1 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +5 -5
- package/Libraries/Components/Button.js +2 -2
- package/Libraries/Components/Button.win32.js +2 -2
- package/Libraries/Components/Clipboard/Clipboard.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +7 -7
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +1 -2
- package/Libraries/Components/Keyboard/Keyboard.js +9 -9
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +4 -4
- package/Libraries/Components/Pressable/Pressable.js +4 -4
- package/Libraries/Components/Pressable/Pressable.win32.js +4 -4
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +9 -9
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +10 -11
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +1 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +9 -9
- package/Libraries/Components/ScrollView/ScrollView.js +32 -26
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +2 -2
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +2 -2
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -1
- package/Libraries/Components/ScrollView/processDecelerationRate.js +1 -1
- package/Libraries/Components/Sound/SoundManager.js +1 -1
- package/Libraries/Components/StaticRenderer.js +4 -4
- package/Libraries/Components/StatusBar/StatusBar.js +33 -18
- package/Libraries/Components/Switch/Switch.js +6 -6
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +31 -31
- package/Libraries/Components/TextInput/InputAccessoryView.js +2 -2
- package/Libraries/Components/TextInput/TextInput.flow.js +35 -35
- package/Libraries/Components/TextInput/TextInput.js +35 -35
- package/Libraries/Components/TextInput/TextInput.win32.js +35 -35
- package/Libraries/Components/TextInput/TextInputNativeCommands.js +1 -1
- package/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +68 -6
- package/Libraries/Components/Touchable/TouchableBounce.js +5 -5
- package/Libraries/Components/Touchable/TouchableHighlight.js +11 -11
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +14 -14
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +6 -6
- package/Libraries/Components/Touchable/TouchableOpacity.js +6 -6
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -2
- package/Libraries/Components/UnimplementedViews/UnimplementedView.js +9 -1
- package/Libraries/Components/View/ViewAccessibility.js +2 -2
- package/Libraries/Components/View/ViewAccessibility.win32.js +2 -2
- package/Libraries/Components/View/ViewPropTypes.js +22 -22
- package/Libraries/Components/View/ViewPropTypes.win32.js +22 -22
- package/Libraries/Core/RawEventEmitter.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +3 -5
- package/Libraries/Core/Timers/JSTimers.js +3 -3
- package/Libraries/Core/polyfillPromise.js +1 -1
- package/Libraries/Core/registerCallableModule.js +1 -1
- package/Libraries/Core/setUpAlert.js +1 -1
- package/Libraries/Core/setUpDeveloperTools.js +0 -2
- package/Libraries/Core/setUpErrorHandling.js +6 -1
- package/Libraries/Core/setUpReactDevTools.js +1 -1
- package/Libraries/Core/setUpTimers.js +35 -56
- package/Libraries/Core/setUpXHR.js +5 -5
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/Events/CustomEvent.js +2 -2
- package/Libraries/Image/AssetRegistry.js +6 -1
- package/Libraries/Image/AssetSourceResolver.js +2 -2
- package/Libraries/Image/ImageProps.js +17 -17
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Inspector/ElementProperties.js +4 -3
- package/Libraries/Inspector/Inspector.js +1 -1
- package/Libraries/Inspector/Inspector.win32.js +1 -1
- package/Libraries/Inspector/InspectorOverlay.js +4 -3
- package/Libraries/Inspector/InspectorOverlay.win32.js +3 -3
- package/Libraries/Inspector/InspectorPanel.js +6 -6
- package/Libraries/Inspector/NetworkOverlay.js +6 -5
- package/Libraries/Inspector/PerformanceOverlay.js +2 -1
- package/Libraries/Inspector/resolveBoxStyle.js +2 -2
- package/Libraries/Interaction/InteractionManager.js +3 -2
- package/Libraries/Interaction/PanResponder.js +6 -6
- package/Libraries/Interaction/TouchHistoryMath.js +26 -0
- package/Libraries/JSInspector/NetworkAgent.js +2 -1
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
- package/Libraries/Linking/Linking.js +0 -1
- package/Libraries/Lists/FlatList.js +9 -10
- package/Libraries/Lists/SectionList.js +7 -9
- package/Libraries/Lists/SectionListModern.js +6 -6
- package/Libraries/LogBox/Data/LogBoxData.js +14 -14
- package/Libraries/LogBox/Data/LogBoxLog.js +51 -29
- package/Libraries/LogBox/Data/parseLogBoxLog.js +10 -10
- package/Libraries/LogBox/LogBox.js +13 -1
- package/Libraries/LogBox/LogBoxInspectorContainer.js +3 -3
- package/Libraries/LogBox/LogBoxNotificationContainer.js +3 -3
- package/Libraries/LogBox/UI/LogBoxButton.js +4 -4
- package/Libraries/LogBox/UI/LogBoxInspectorBody.js +8 -2
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +50 -31
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +50 -31
- package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorSection.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +2 -2
- package/Libraries/Modal/Modal.js +7 -7
- package/Libraries/Network/XMLHttpRequest.js +1 -1
- package/Libraries/Network/convertRequestBody.js +3 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -4
- package/Libraries/Pressability/Pressability.js +10 -10
- package/Libraries/Pressability/Pressability.win32.js +10 -10
- package/Libraries/Pressability/PressabilityDebug.js +2 -2
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +2 -2
- package/Libraries/Promise.js +2 -2
- package/Libraries/ReactNative/AppContainer.js +2 -2
- package/Libraries/ReactNative/BridgelessUIManager.js +3 -8
- package/Libraries/ReactNative/I18nManager.js +3 -2
- package/Libraries/ReactNative/PaperUIManager.js +1 -1
- package/Libraries/ReactNative/PaperUIManager.win32.js +1 -1
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +2 -2
- package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +2 -2
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +3 -2
- package/Libraries/StyleSheet/Rect.js +2 -2
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.win32.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/private/_TransformStyle.js +18 -18
- package/Libraries/StyleSheet/processBackgroundImage.js +138 -136
- package/Libraries/Text/TextAncestor.js +1 -2
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/Types/CodegenTypes.js +2 -1
- package/Libraries/Types/CoreEventTypes.js +40 -40
- package/Libraries/Types/CoreEventTypes.win32.js +40 -40
- package/Libraries/UTFSequence.js +2 -2
- package/Libraries/Utilities/BackHandler.android.js +2 -2
- package/Libraries/Utilities/BackHandler.ios.js +2 -2
- package/Libraries/Utilities/BackHandler.win32.js +2 -2
- package/Libraries/Utilities/HMRClient.js +2 -2
- package/Libraries/Utilities/Platform.android.js +4 -4
- package/Libraries/Utilities/Platform.flow.js +8 -8
- package/Libraries/Utilities/Platform.flow.win32.js +8 -8
- package/Libraries/Utilities/Platform.ios.js +4 -4
- package/Libraries/Utilities/Platform.win32.js +2 -2
- package/Libraries/Utilities/ReactNativeTestTools.js +3 -2
- package/Libraries/Utilities/codegenNativeCommands.js +2 -2
- package/Libraries/Utilities/codegenNativeComponent.js +2 -2
- package/Libraries/Utilities/differ/deepDiffer.js +3 -3
- package/Libraries/Utilities/stringifySafe.js +2 -2
- package/Libraries/Vibration/Vibration.js +1 -1
- package/Libraries/WebSocket/WebSocketEvent.js +1 -1
- package/Libraries/YellowBox/YellowBoxDeprecated.js +4 -3
- package/Libraries/vendor/core/ErrorUtils.js +1 -1
- package/flow/jest.js +14 -14
- package/index.js +16 -13
- package/index.win32.js +16 -13
- package/jest/setup.js +214 -197
- package/overrides.json +26 -26
- package/package.json +16 -16
- package/src/private/featureflags/ReactNativeFeatureFlags.js +11 -30
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +3 -2
- package/src/private/specs/components/ActivityIndicatorViewNativeComponent.js +2 -2
- package/src/private/specs/components/AndroidDrawerLayoutNativeComponent.js +6 -6
- package/src/private/specs/components/AndroidHorizontalScrollContentViewNativeComponent.js +2 -2
- package/src/private/specs/components/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
- package/src/private/specs/components/AndroidSwitchNativeComponent.js +4 -4
- package/src/private/specs/components/DebuggingOverlayNativeComponent.js +2 -2
- package/src/private/specs/components/ProgressBarAndroidNativeComponent.js +2 -2
- package/src/private/specs/components/PullToRefreshViewNativeComponent.js +2 -2
- package/src/private/specs/components/RCTInputAccessoryViewNativeComponent.js +2 -2
- package/src/private/specs/components/RCTModalHostViewNativeComponent.js +4 -4
- package/src/private/specs/components/RCTSafeAreaViewNativeComponent.js +2 -2
- package/src/private/specs/components/SwitchNativeComponent.js +4 -4
- package/src/private/specs/components/UnimplementedNativeViewNativeComponent.js +2 -2
- package/src/private/specs/modules/NativeAccessibilityManager.js +2 -2
- package/src/private/specs/modules/NativeActionSheetManager.js +7 -7
- package/src/private/specs/modules/NativeAlertManager.js +2 -2
- package/src/private/specs/modules/NativeAnimatedModule.js +2 -2
- package/src/private/specs/modules/NativeAnimatedTurboModule.js +2 -2
- package/src/private/specs/modules/NativeAppState.js +3 -3
- package/src/private/specs/modules/NativeBlobModule.js +1 -1
- package/src/private/specs/modules/NativeClipboard.js +1 -1
- package/src/private/specs/modules/NativeDeviceInfo.js +8 -8
- package/src/private/specs/modules/NativeDialogManagerAndroid.js +4 -4
- package/src/private/specs/modules/NativeExceptionsManager.js +2 -2
- package/src/private/specs/modules/NativeFantom.js +6 -0
- package/src/private/specs/modules/NativeFrameRateLogger.js +1 -1
- package/src/private/specs/modules/NativeI18nManager.js +2 -2
- package/src/private/specs/modules/NativeImageEditor.js +9 -9
- package/src/private/specs/modules/NativeImageLoaderAndroid.js +1 -1
- package/src/private/specs/modules/NativeImageLoaderIOS.js +1 -1
- package/src/private/specs/modules/NativeImageLoaderWin32.js +1 -1
- package/src/private/specs/modules/NativeImageStoreAndroid.js +1 -1
- package/src/private/specs/modules/NativeImageStoreIOS.js +3 -3
- package/src/private/specs/modules/NativeNetworkingIOS.js +2 -2
- package/src/private/specs/modules/NativePlatformConstantsAndroid.js +4 -4
- package/src/private/specs/modules/NativePlatformConstantsIOS.js +4 -4
- package/src/private/specs/modules/NativePlatformConstantsWin.js +5 -10
- package/src/private/specs/modules/NativePushNotificationManagerIOS.js +7 -7
- package/src/private/specs/modules/NativeSampleTurboModule.js +2 -2
- package/src/private/specs/modules/NativeSettingsManager.js +2 -2
- package/src/private/specs/modules/NativeShareModule.js +3 -3
- package/src/private/specs/modules/NativeSourceCode.js +2 -2
- package/src/private/specs/modules/NativeStatusBarManagerAndroid.js +4 -4
- package/src/private/specs/modules/NativeStatusBarManagerIOS.js +6 -6
- package/src/private/specs/modules/NativeToastAndroid.js +2 -2
- package/src/private/specs/modules/NativeVibration.js +1 -1
- package/src/private/specs/modules/NativeWebSocketModule.js +1 -1
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +2 -2
- package/src/private/webapis/intersectionobserver/{IntersectionObserverManager.js → internals/IntersectionObserverManager.js} +9 -9
- package/src/private/webapis/mutationobserver/MutationObserver.js +2 -2
- package/src/private/webapis/mutationobserver/{MutationObserverManager.js → internals/MutationObserverManager.js} +8 -8
- package/src/private/webapis/performance/EventTiming.js +1 -1
- package/src/private/webapis/performance/Performance.js +3 -3
- package/src/private/webapis/performance/PerformanceObserver.js +2 -2
- package/src/private/webapis/performance/{RawPerformanceEntry.js → internals/RawPerformanceEntry.js} +6 -6
- package/src/private/webapis/performance/{Utilities.js → internals/Utilities.js} +1 -1
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +1 -1
|
@@ -12,32 +12,32 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type DisplayMetricsAndroid = {
|
|
15
|
+
export type DisplayMetricsAndroid = {
|
|
16
16
|
width: number,
|
|
17
17
|
height: number,
|
|
18
18
|
scale: number,
|
|
19
19
|
fontScale: number,
|
|
20
20
|
densityDpi: number,
|
|
21
|
-
|
|
21
|
+
};
|
|
22
22
|
|
|
23
|
-
export type DisplayMetrics = {
|
|
23
|
+
export type DisplayMetrics = {
|
|
24
24
|
width: number,
|
|
25
25
|
height: number,
|
|
26
26
|
scale: number,
|
|
27
27
|
fontScale: number,
|
|
28
|
-
|
|
28
|
+
};
|
|
29
29
|
|
|
30
|
-
export type DimensionsPayload = {
|
|
30
|
+
export type DimensionsPayload = {
|
|
31
31
|
window?: DisplayMetrics,
|
|
32
32
|
screen?: DisplayMetrics,
|
|
33
33
|
windowPhysicalPixels?: DisplayMetricsAndroid,
|
|
34
34
|
screenPhysicalPixels?: DisplayMetricsAndroid,
|
|
35
|
-
|
|
35
|
+
};
|
|
36
36
|
|
|
37
|
-
export type DeviceInfoConstants = {
|
|
37
|
+
export type DeviceInfoConstants = {
|
|
38
38
|
+Dimensions: DimensionsPayload,
|
|
39
39
|
+isIPhoneX_deprecated?: boolean,
|
|
40
|
-
|
|
40
|
+
};
|
|
41
41
|
|
|
42
42
|
export interface Spec extends TurboModule {
|
|
43
43
|
+getConstants: () => DeviceInfoConstants;
|
|
@@ -20,7 +20,7 @@ type DialogAction = string;
|
|
|
20
20
|
buttonNeutral = -3
|
|
21
21
|
*/
|
|
22
22
|
type DialogButtonKey = number;
|
|
23
|
-
export type DialogOptions = {
|
|
23
|
+
export type DialogOptions = {
|
|
24
24
|
title?: string,
|
|
25
25
|
message?: string,
|
|
26
26
|
buttonPositive?: string,
|
|
@@ -28,16 +28,16 @@ export type DialogOptions = {|
|
|
|
28
28
|
buttonNeutral?: string,
|
|
29
29
|
items?: Array<string>,
|
|
30
30
|
cancelable?: boolean,
|
|
31
|
-
|
|
31
|
+
};
|
|
32
32
|
|
|
33
33
|
export interface Spec extends TurboModule {
|
|
34
|
-
+getConstants: () => {
|
|
34
|
+
+getConstants: () => {
|
|
35
35
|
+buttonClicked: DialogAction,
|
|
36
36
|
+dismissed: DialogAction,
|
|
37
37
|
+buttonPositive: DialogButtonKey,
|
|
38
38
|
+buttonNegative: DialogButtonKey,
|
|
39
39
|
+buttonNeutral: DialogButtonKey,
|
|
40
|
-
|
|
40
|
+
};
|
|
41
41
|
+showAlert: (
|
|
42
42
|
config: DialogOptions,
|
|
43
43
|
onError: (error: string) => void,
|
|
@@ -14,13 +14,13 @@ import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboMod
|
|
|
14
14
|
|
|
15
15
|
const Platform = require('../../../../Libraries/Utilities/Platform');
|
|
16
16
|
|
|
17
|
-
export type StackFrame = {
|
|
17
|
+
export type StackFrame = {
|
|
18
18
|
column: ?number,
|
|
19
19
|
file: ?string,
|
|
20
20
|
lineNumber: ?number,
|
|
21
21
|
methodName: string,
|
|
22
22
|
collapse?: boolean,
|
|
23
|
-
|
|
23
|
+
};
|
|
24
24
|
export type ExceptionData = {
|
|
25
25
|
message: string,
|
|
26
26
|
originalMessage: ?string,
|
|
@@ -26,8 +26,14 @@ interface Spec extends TurboModule {
|
|
|
26
26
|
devicePixelRatio: number,
|
|
27
27
|
) => void;
|
|
28
28
|
stopSurface: (surfaceId: number) => void;
|
|
29
|
+
dispatchNativeEvent: (
|
|
30
|
+
shadowNode: mixed /* ShadowNode */,
|
|
31
|
+
type: string,
|
|
32
|
+
payload?: mixed,
|
|
33
|
+
) => void;
|
|
29
34
|
getMountingManagerLogs: (surfaceId: number) => Array<string>;
|
|
30
35
|
flushMessageQueue: () => void;
|
|
36
|
+
flushEventQueue: () => void;
|
|
31
37
|
getRenderedOutput: (surfaceId: number, config: RenderFormatOptions) => string;
|
|
32
38
|
reportTestSuiteResultsJSON: (results: string) => void;
|
|
33
39
|
}
|
|
@@ -13,7 +13,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+setGlobalOptions: (options: {
|
|
16
|
+
+setGlobalOptions: (options: {+debug?: ?boolean}) => void;
|
|
17
17
|
+setContext: (context: string) => void;
|
|
18
18
|
+beginScroll: () => void;
|
|
19
19
|
+endScroll: () => void;
|
|
@@ -12,11 +12,11 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type I18nManagerConstants = {
|
|
15
|
+
export type I18nManagerConstants = {
|
|
16
16
|
doLeftAndRightSwapInRTL: boolean,
|
|
17
17
|
isRTL: boolean,
|
|
18
18
|
localeIdentifier?: ?string,
|
|
19
|
-
|
|
19
|
+
};
|
|
20
20
|
|
|
21
21
|
export interface Spec extends TurboModule {
|
|
22
22
|
+getConstants: () => I18nManagerConstants;
|
|
@@ -12,19 +12,19 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
type Options = {
|
|
16
|
-
+offset: {
|
|
15
|
+
type Options = {
|
|
16
|
+
+offset: {
|
|
17
17
|
+x: number,
|
|
18
18
|
+y: number,
|
|
19
|
-
|
|
20
|
-
+size: {
|
|
19
|
+
},
|
|
20
|
+
+size: {
|
|
21
21
|
+width: number,
|
|
22
22
|
+height: number,
|
|
23
|
-
|
|
24
|
-
+displaySize?: ?{
|
|
23
|
+
},
|
|
24
|
+
+displaySize?: ?{
|
|
25
25
|
+width: number,
|
|
26
26
|
+height: number,
|
|
27
|
-
|
|
27
|
+
},
|
|
28
28
|
/**
|
|
29
29
|
* Enum with potential values:
|
|
30
30
|
* - cover
|
|
@@ -35,10 +35,10 @@ type Options = {|
|
|
|
35
35
|
*/
|
|
36
36
|
+resizeMode?: ?string,
|
|
37
37
|
+allowExternalStorage?: boolean,
|
|
38
|
-
|
|
38
|
+
};
|
|
39
39
|
|
|
40
40
|
export interface Spec extends TurboModule {
|
|
41
|
-
+getConstants: () => {
|
|
41
|
+
+getConstants: () => {};
|
|
42
42
|
+cropImage: (
|
|
43
43
|
uri: string,
|
|
44
44
|
cropData: Options,
|
|
@@ -20,7 +20,7 @@ export type ImageSize = {
|
|
|
20
20
|
|
|
21
21
|
export interface Spec extends TurboModule {
|
|
22
22
|
+abortRequest: (requestId: number) => void;
|
|
23
|
-
+getConstants: () => {
|
|
23
|
+
+getConstants: () => {};
|
|
24
24
|
+getSize: (uri: string) => Promise<ImageSize>;
|
|
25
25
|
+getSizeWithHeaders: (uri: string, headers: Object) => Promise<ImageSize>;
|
|
26
26
|
+prefetchImage: (uri: string, requestId: number) => Promise<boolean>;
|
|
@@ -14,7 +14,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
14
14
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
15
15
|
|
|
16
16
|
export interface Spec extends TurboModule {
|
|
17
|
-
+getConstants: () => {
|
|
17
|
+
+getConstants: () => {};
|
|
18
18
|
// Return [width, height] of image uri
|
|
19
19
|
+getSize: (uri: string) => Promise<$ReadOnlyArray<number>>;
|
|
20
20
|
+getSizeWithHeaders: (
|
|
@@ -14,7 +14,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
14
14
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
15
15
|
|
|
16
16
|
export interface Spec extends TurboModule {
|
|
17
|
-
+getConstants: () => {
|
|
17
|
+
+getConstants: () => {};
|
|
18
18
|
// [Win32 uses callback instead of promise
|
|
19
19
|
+getSize: (
|
|
20
20
|
uri: string,
|
|
@@ -13,7 +13,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {};
|
|
17
17
|
+getBase64ForTag: (
|
|
18
18
|
uri: string,
|
|
19
19
|
successCallback: (base64ImageData: string) => void,
|
|
@@ -13,18 +13,18 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {};
|
|
17
17
|
+getBase64ForTag: (
|
|
18
18
|
uri: string,
|
|
19
19
|
successCallback: (base64ImageData: string) => void,
|
|
20
|
-
errorCallback: (error: {
|
|
20
|
+
errorCallback: (error: {message: string}) => void,
|
|
21
21
|
) => void;
|
|
22
22
|
+hasImageForTag: (uri: string, callback: (hasImage: boolean) => void) => void;
|
|
23
23
|
+removeImageForTag: (uri: string) => void;
|
|
24
24
|
+addImageFromBase64: (
|
|
25
25
|
base64ImageData: string,
|
|
26
26
|
successCallback: (uri: string) => void,
|
|
27
|
-
errorCallback: (error: {
|
|
27
|
+
errorCallback: (error: {message: string}) => void,
|
|
28
28
|
) => void;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -14,7 +14,7 @@ import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboMod
|
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
16
|
+sendRequest: (
|
|
17
|
-
query: {
|
|
17
|
+
query: {
|
|
18
18
|
method: string,
|
|
19
19
|
url: string,
|
|
20
20
|
data: Object,
|
|
@@ -23,7 +23,7 @@ export interface Spec extends TurboModule {
|
|
|
23
23
|
incrementalUpdates: boolean,
|
|
24
24
|
timeout: number,
|
|
25
25
|
withCredentials: boolean,
|
|
26
|
-
|
|
26
|
+
},
|
|
27
27
|
callback: (requestId: number) => void,
|
|
28
28
|
) => void;
|
|
29
29
|
+abortRequest: (requestId: number) => void;
|
|
@@ -12,14 +12,14 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type ReactNativeVersionAndroid = {
|
|
15
|
+
export type ReactNativeVersionAndroid = {
|
|
16
16
|
major: number,
|
|
17
17
|
minor: number,
|
|
18
18
|
patch: number,
|
|
19
19
|
prerelease: ?string,
|
|
20
|
-
|
|
20
|
+
};
|
|
21
21
|
|
|
22
|
-
export type PlatformConstantsAndroid = {
|
|
22
|
+
export type PlatformConstantsAndroid = {
|
|
23
23
|
isTesting: boolean,
|
|
24
24
|
isDisableAnimations?: boolean,
|
|
25
25
|
reactNativeVersion: ReactNativeVersionAndroid,
|
|
@@ -32,7 +32,7 @@ export type PlatformConstantsAndroid = {|
|
|
|
32
32
|
uiMode: string,
|
|
33
33
|
Brand: string,
|
|
34
34
|
Manufacturer: string,
|
|
35
|
-
|
|
35
|
+
};
|
|
36
36
|
|
|
37
37
|
export interface Spec extends TurboModule {
|
|
38
38
|
+getConstants: () => PlatformConstantsAndroid;
|
|
@@ -12,21 +12,21 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type PlatformConstantsIOS = {
|
|
15
|
+
export type PlatformConstantsIOS = {
|
|
16
16
|
isTesting: boolean,
|
|
17
17
|
isDisableAnimations?: boolean,
|
|
18
|
-
reactNativeVersion: {
|
|
18
|
+
reactNativeVersion: {
|
|
19
19
|
major: number,
|
|
20
20
|
minor: number,
|
|
21
21
|
patch: number,
|
|
22
22
|
prerelease: ?string,
|
|
23
|
-
|
|
23
|
+
},
|
|
24
24
|
forceTouchAvailable: boolean,
|
|
25
25
|
osVersion: string,
|
|
26
26
|
systemName: string,
|
|
27
27
|
interfaceIdiom: string,
|
|
28
28
|
isMacCatalyst?: boolean,
|
|
29
|
-
|
|
29
|
+
};
|
|
30
30
|
|
|
31
31
|
export interface Spec extends TurboModule {
|
|
32
32
|
+getConstants: () => PlatformConstantsIOS;
|
|
@@ -12,28 +12,23 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type ReactNativeVersionAndroid = {
|
|
15
|
+
export type ReactNativeVersionAndroid = {
|
|
16
16
|
major: number,
|
|
17
17
|
minor: number,
|
|
18
18
|
patch: number,
|
|
19
19
|
prerelease: ?string,
|
|
20
|
-
|
|
20
|
+
};
|
|
21
21
|
|
|
22
|
-
export type PlatformConstantsWin32 = {
|
|
22
|
+
export type PlatformConstantsWin32 = {
|
|
23
23
|
isTesting: boolean,
|
|
24
24
|
isDisableAnimations?: boolean,
|
|
25
|
-
reactNativeVersion:
|
|
26
|
-
major: number,
|
|
27
|
-
minor: number,
|
|
28
|
-
patch: number,
|
|
29
|
-
prerelease: ?string,
|
|
30
|
-
|},
|
|
25
|
+
reactNativeVersion: ReactNativeVersionAndroid,
|
|
31
26
|
forceTouchAvailable: boolean,
|
|
32
27
|
osVersion: number,
|
|
33
28
|
systemName: string,
|
|
34
29
|
interfaceIdiom: string,
|
|
35
30
|
isMacCatalyst?: boolean,
|
|
36
|
-
|
|
31
|
+
};
|
|
37
32
|
|
|
38
33
|
export interface Spec extends TurboModule {
|
|
39
34
|
+getConstants: () => PlatformConstantsWin32;
|
|
@@ -12,13 +12,13 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
type Permissions = {
|
|
15
|
+
type Permissions = {
|
|
16
16
|
alert: boolean,
|
|
17
17
|
badge: boolean,
|
|
18
18
|
sound: boolean,
|
|
19
|
-
|
|
19
|
+
};
|
|
20
20
|
|
|
21
|
-
type Notification = {
|
|
21
|
+
type Notification = {
|
|
22
22
|
+alertTitle?: ?string,
|
|
23
23
|
+alertBody?: ?string,
|
|
24
24
|
+userInfo?: ?Object,
|
|
@@ -55,10 +55,10 @@ type Notification = {|
|
|
|
55
55
|
* getScheduledLocalNotifications or getDeliveredNotifications.
|
|
56
56
|
*/
|
|
57
57
|
+soundName?: ?string,
|
|
58
|
-
|
|
58
|
+
};
|
|
59
59
|
|
|
60
60
|
export interface Spec extends TurboModule {
|
|
61
|
-
+getConstants: () => {
|
|
61
|
+
+getConstants: () => {};
|
|
62
62
|
+onFinishRemoteNotification: (
|
|
63
63
|
notificationId: string,
|
|
64
64
|
/**
|
|
@@ -71,11 +71,11 @@ export interface Spec extends TurboModule {
|
|
|
71
71
|
) => void;
|
|
72
72
|
+setApplicationIconBadgeNumber: (num: number) => void;
|
|
73
73
|
+getApplicationIconBadgeNumber: (callback: (num: number) => void) => void;
|
|
74
|
-
+requestPermissions: (permission: {
|
|
74
|
+
+requestPermissions: (permission: {
|
|
75
75
|
+alert: boolean,
|
|
76
76
|
+badge: boolean,
|
|
77
77
|
+sound: boolean,
|
|
78
|
-
|
|
78
|
+
}) => Promise<Permissions>;
|
|
79
79
|
+abandonPermissions: () => void;
|
|
80
80
|
+checkPermissions: (callback: (permissions: Permissions) => void) => void;
|
|
81
81
|
+presentLocalNotification: (notification: Notification) => void;
|
|
@@ -36,11 +36,11 @@ export interface Spec extends TurboModule {
|
|
|
36
36
|
+onChange: EventEmitter<ObjectStruct>;
|
|
37
37
|
+onSubmit: EventEmitter<ObjectStruct[]>;
|
|
38
38
|
// Exported methods.
|
|
39
|
-
+getConstants: () => {
|
|
39
|
+
+getConstants: () => {
|
|
40
40
|
const1: boolean,
|
|
41
41
|
const2: number,
|
|
42
42
|
const3: string,
|
|
43
|
-
|
|
43
|
+
};
|
|
44
44
|
+voidFunc: () => void;
|
|
45
45
|
+getBool: (arg: boolean) => boolean;
|
|
46
46
|
+getEnum?: (arg: EnumInt) => EnumInt;
|
|
@@ -13,9 +13,9 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {
|
|
17
17
|
settings: Object,
|
|
18
|
-
|
|
18
|
+
};
|
|
19
19
|
+setValues: (values: Object) => void;
|
|
20
20
|
+deleteValues: (values: Array<string>) => void;
|
|
21
21
|
}
|
|
@@ -13,11 +13,11 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {};
|
|
17
17
|
+share: (
|
|
18
|
-
content: {
|
|
18
|
+
content: {title?: string, message?: string},
|
|
19
19
|
dialogTitle?: string,
|
|
20
|
-
) => Promise<{
|
|
20
|
+
) => Promise<{action: string}>;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export default (TurboModuleRegistry.get<Spec>('ShareModule'): ?Spec);
|
|
@@ -12,9 +12,9 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type SourceCodeConstants = {
|
|
15
|
+
export type SourceCodeConstants = {
|
|
16
16
|
scriptURL: string,
|
|
17
|
-
|
|
17
|
+
};
|
|
18
18
|
|
|
19
19
|
export interface Spec extends TurboModule {
|
|
20
20
|
+getConstants: () => SourceCodeConstants;
|
|
@@ -13,10 +13,10 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {
|
|
17
17
|
+HEIGHT: number,
|
|
18
18
|
+DEFAULT_BACKGROUND_COLOR: number,
|
|
19
|
-
|
|
19
|
+
};
|
|
20
20
|
+setColor: (color: number, animated: boolean) => void;
|
|
21
21
|
+setTranslucent: (translucent: boolean) => void;
|
|
22
22
|
|
|
@@ -33,10 +33,10 @@ const NativeModule = TurboModuleRegistry.getEnforcing<Spec>('StatusBarManager');
|
|
|
33
33
|
let constants = null;
|
|
34
34
|
|
|
35
35
|
const NativeStatusBarManager = {
|
|
36
|
-
getConstants(): {
|
|
36
|
+
getConstants(): {
|
|
37
37
|
+HEIGHT: number,
|
|
38
38
|
+DEFAULT_BACKGROUND_COLOR?: number,
|
|
39
|
-
|
|
39
|
+
} {
|
|
40
40
|
if (constants == null) {
|
|
41
41
|
constants = NativeModule.getConstants();
|
|
42
42
|
}
|
|
@@ -13,13 +13,13 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {
|
|
17
17
|
+HEIGHT: number,
|
|
18
18
|
+DEFAULT_BACKGROUND_COLOR?: number,
|
|
19
|
-
|
|
19
|
+
};
|
|
20
20
|
|
|
21
21
|
// TODO(T47754272) Can we remove this method?
|
|
22
|
-
+getHeight: (callback: (result: {
|
|
22
|
+
+getHeight: (callback: (result: {height: number}) => void) => void;
|
|
23
23
|
+setNetworkActivityIndicatorVisible: (visible: boolean) => void;
|
|
24
24
|
+addListener: (eventType: string) => void;
|
|
25
25
|
+removeListeners: (count: number) => void;
|
|
@@ -41,10 +41,10 @@ const NativeModule = TurboModuleRegistry.getEnforcing<Spec>('StatusBarManager');
|
|
|
41
41
|
let constants = null;
|
|
42
42
|
|
|
43
43
|
const NativeStatusBarManager = {
|
|
44
|
-
getConstants(): {
|
|
44
|
+
getConstants(): {
|
|
45
45
|
+HEIGHT: number,
|
|
46
46
|
+DEFAULT_BACKGROUND_COLOR?: number,
|
|
47
|
-
|
|
47
|
+
} {
|
|
48
48
|
if (constants == null) {
|
|
49
49
|
constants = NativeModule.getConstants();
|
|
50
50
|
}
|
|
@@ -52,7 +52,7 @@ const NativeStatusBarManager = {
|
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
// TODO(T47754272) Can we remove this method?
|
|
55
|
-
getHeight(callback: (result: {
|
|
55
|
+
getHeight(callback: (result: {height: number}) => void): void {
|
|
56
56
|
NativeModule.getHeight(callback);
|
|
57
57
|
},
|
|
58
58
|
|
|
@@ -13,13 +13,13 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {
|
|
17
17
|
SHORT: number,
|
|
18
18
|
LONG: number,
|
|
19
19
|
TOP: number,
|
|
20
20
|
BOTTOM: number,
|
|
21
21
|
CENTER: number,
|
|
22
|
-
|
|
22
|
+
};
|
|
23
23
|
+show: (message: string, duration: number) => void;
|
|
24
24
|
+showWithGravity: (
|
|
25
25
|
message: string,
|
|
@@ -13,7 +13,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {};
|
|
17
17
|
+vibrate: (pattern: number) => void;
|
|
18
18
|
|
|
19
19
|
// Android only
|
|
@@ -16,7 +16,7 @@ export interface Spec extends TurboModule {
|
|
|
16
16
|
+connect: (
|
|
17
17
|
url: string,
|
|
18
18
|
protocols: ?Array<string>,
|
|
19
|
-
options: {
|
|
19
|
+
options: {headers?: Object},
|
|
20
20
|
socketID: number,
|
|
21
21
|
) => void;
|
|
22
22
|
+send: (message: string, forSocketID: number) => void;
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
// flowlint unsafe-getters-setters:off
|
|
12
12
|
|
|
13
|
+
import type {IntersectionObserverId} from './internals/IntersectionObserverManager';
|
|
13
14
|
import type IntersectionObserverEntry from './IntersectionObserverEntry';
|
|
14
|
-
import type {IntersectionObserverId} from './IntersectionObserverManager';
|
|
15
15
|
|
|
16
16
|
import ReactNativeElement from '../dom/nodes/ReactNativeElement';
|
|
17
|
-
import * as IntersectionObserverManager from './IntersectionObserverManager';
|
|
17
|
+
import * as IntersectionObserverManager from './internals/IntersectionObserverManager';
|
|
18
18
|
|
|
19
19
|
export type IntersectionObserverCallback = (
|
|
20
20
|
entries: Array<IntersectionObserverEntry>,
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
* the notifications together.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import type ReactNativeElement from '
|
|
21
|
+
import type ReactNativeElement from '../../dom/nodes/ReactNativeElement';
|
|
22
22
|
import type IntersectionObserver, {
|
|
23
23
|
IntersectionObserverCallback,
|
|
24
|
-
} from '
|
|
25
|
-
import type IntersectionObserverEntry from '
|
|
26
|
-
|
|
27
|
-
import * as Systrace from '
|
|
28
|
-
import warnOnce from '
|
|
29
|
-
import {getInstanceHandle, getShadowNode} from '
|
|
30
|
-
import {createIntersectionObserverEntry} from '
|
|
31
|
-
import NativeIntersectionObserver from '
|
|
24
|
+
} from '../IntersectionObserver';
|
|
25
|
+
import type IntersectionObserverEntry from '../IntersectionObserverEntry';
|
|
26
|
+
|
|
27
|
+
import * as Systrace from '../../../../../Libraries/Performance/Systrace';
|
|
28
|
+
import warnOnce from '../../../../../Libraries/Utilities/warnOnce';
|
|
29
|
+
import {getInstanceHandle, getShadowNode} from '../../dom/nodes/ReadOnlyNode';
|
|
30
|
+
import {createIntersectionObserverEntry} from '../IntersectionObserverEntry';
|
|
31
|
+
import NativeIntersectionObserver from '../specs/NativeIntersectionObserver';
|
|
32
32
|
|
|
33
33
|
export type IntersectionObserverId = number;
|
|
34
34
|
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
// flowlint unsafe-getters-setters:off
|
|
12
12
|
|
|
13
|
-
import type {MutationObserverId} from './MutationObserverManager';
|
|
13
|
+
import type {MutationObserverId} from './internals/MutationObserverManager';
|
|
14
14
|
import type MutationRecord from './MutationRecord';
|
|
15
15
|
|
|
16
16
|
import ReactNativeElement from '../dom/nodes/ReactNativeElement';
|
|
17
|
-
import * as MutationObserverManager from './MutationObserverManager';
|
|
17
|
+
import * as MutationObserverManager from './internals/MutationObserverManager';
|
|
18
18
|
|
|
19
19
|
export type MutationObserverCallback = (
|
|
20
20
|
mutationRecords: $ReadOnlyArray<MutationRecord>,
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
* the notifications together.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import type ReactNativeElement from '
|
|
21
|
+
import type ReactNativeElement from '../../dom/nodes/ReactNativeElement';
|
|
22
22
|
import type MutationObserver, {
|
|
23
23
|
MutationObserverCallback,
|
|
24
|
-
} from '
|
|
25
|
-
import type MutationRecord from '
|
|
24
|
+
} from '../MutationObserver';
|
|
25
|
+
import type MutationRecord from '../MutationRecord';
|
|
26
26
|
|
|
27
|
-
import * as Systrace from '
|
|
28
|
-
import warnOnce from '
|
|
27
|
+
import * as Systrace from '../../../../../Libraries/Performance/Systrace';
|
|
28
|
+
import warnOnce from '../../../../../Libraries/Utilities/warnOnce';
|
|
29
29
|
import {
|
|
30
30
|
getPublicInstanceFromInternalInstanceHandle,
|
|
31
31
|
getShadowNode,
|
|
32
|
-
} from '
|
|
33
|
-
import {createMutationRecord} from '
|
|
34
|
-
import NativeMutationObserver from '
|
|
32
|
+
} from '../../dom/nodes/ReadOnlyNode';
|
|
33
|
+
import {createMutationRecord} from '../MutationRecord';
|
|
34
|
+
import NativeMutationObserver from '../specs/NativeMutationObserver';
|
|
35
35
|
|
|
36
36
|
export type MutationObserverId = number;
|
|
37
37
|
|
|
@@ -15,9 +15,9 @@ import type {
|
|
|
15
15
|
PerformanceEntryJSON,
|
|
16
16
|
} from './PerformanceEntry';
|
|
17
17
|
|
|
18
|
+
import {warnNoNativePerformance} from './internals/Utilities';
|
|
18
19
|
import {PerformanceEntry} from './PerformanceEntry';
|
|
19
20
|
import NativePerformance from './specs/NativePerformance';
|
|
20
|
-
import {warnNoNativePerformance} from './Utilities';
|
|
21
21
|
|
|
22
22
|
export type PerformanceEventTimingJSON = {
|
|
23
23
|
...PerformanceEntryJSON,
|