@office-iss/react-native-win32 0.71.5 → 0.72.0-preview.1
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 +15 -3
- package/CHANGELOG.json +302 -47
- package/CHANGELOG.md +141 -27
- package/IntegrationTests/IntegrationTestHarnessTest.js +1 -0
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +1 -1
- package/Libraries/Alert/Alert.d.ts +4 -4
- package/Libraries/Alert/Alert.win32.js +1 -0
- package/Libraries/Animated/Animated.d.ts +17 -6
- package/Libraries/Animated/NativeAnimatedHelper.js +18 -6
- package/Libraries/Animated/NativeAnimatedHelper.win32.js +606 -0
- package/Libraries/Animated/bezier.js +1 -1
- package/Libraries/Animated/components/AnimatedFlatList.js +8 -3
- package/Libraries/Animated/components/AnimatedScrollView.js +4 -1
- package/Libraries/Animated/components/AnimatedSectionList.js +12 -3
- package/Libraries/Animated/createAnimatedComponent.js +26 -239
- package/Libraries/Animated/nodes/AnimatedColor.js +47 -80
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +167 -121
- package/Libraries/Animated/nodes/AnimatedNode.js +3 -5
- package/Libraries/Animated/nodes/AnimatedProps.js +7 -6
- package/Libraries/Animated/nodes/AnimatedStyle.js +42 -8
- package/Libraries/Animated/nodes/AnimatedTransform.js +1 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +8 -12
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -1
- package/Libraries/Animated/useAnimatedProps.js +7 -10
- package/Libraries/BatchedBridge/MessageQueue.js +2 -1
- package/Libraries/BatchedBridge/NativeModules.d.ts +1 -1
- package/Libraries/BatchedBridge/NativeModules.js +1 -0
- package/Libraries/Blob/Blob.js +4 -0
- package/Libraries/Blob/FileReader.js +30 -2
- package/Libraries/Blob/URL.js +3 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +2 -2
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +2 -3
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +2 -3
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +6 -4
- package/Libraries/Components/Button.js +3 -2
- package/Libraries/Components/Button.win32.js +451 -0
- package/Libraries/Components/Clipboard/Clipboard.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -0
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -0
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
- package/Libraries/Components/Pressable/Pressable.js +1 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +1 -0
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -2
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +1 -2
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +12 -6
- package/Libraries/Components/ScrollView/ScrollView.d.ts +2 -2
- package/Libraries/Components/ScrollView/ScrollView.js +149 -91
- package/Libraries/Components/ScrollView/ScrollView.win32.js +1939 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +16 -6
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +5 -7
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +3 -0
- package/Libraries/Components/Switch/Switch.js +3 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +21 -11
- package/Libraries/Components/TextInput/InputAccessoryView.d.ts +1 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +11 -5
- package/Libraries/Components/TextInput/TextInput.Types.win32.d.ts +51 -0
- package/Libraries/Components/TextInput/TextInput.Types.win32.js +3 -0
- package/Libraries/Components/TextInput/TextInput.Types.win32.js.map +1 -0
- package/Libraries/Components/TextInput/TextInput.d.ts +15 -5
- package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
- package/Libraries/Components/TextInput/TextInput.js +130 -103
- package/Libraries/Components/TextInput/TextInput.win32.js +202 -890
- package/Libraries/Components/Touchable/Touchable.d.ts +1 -1
- package/Libraries/Components/Touchable/Touchable.flow.js +30 -4
- package/Libraries/Components/Touchable/Touchable.js +6 -3
- package/Libraries/Components/Touchable/Touchable.win32.js +6 -3
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +2 -2
- package/Libraries/Components/Touchable/TouchableOpacity.js +3 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -2
- package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlay.js +189 -0
- package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlayNativeComponent.js +43 -0
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +26 -0
- package/Libraries/Components/View/View.js +71 -45
- package/Libraries/Components/View/View.win32.js +38 -16
- package/Libraries/Components/View/ViewAccessibility.d.ts +6 -6
- package/Libraries/Components/View/ViewAccessibility.js +10 -1
- package/Libraries/Components/View/ViewAccessibility.win32.d.ts +5 -5
- package/Libraries/Components/View/ViewNativeComponent.js +32 -8
- package/Libraries/Components/View/ViewPropTypes.d.ts +1 -1
- package/Libraries/Components/View/ViewPropTypes.js +1 -1
- package/Libraries/Components/View/ViewPropTypes.win32.d.ts +1 -1
- package/Libraries/Components/View/ViewPropTypes.win32.js +1 -1
- package/Libraries/Components/View/ViewWin32.js +3 -3
- package/Libraries/Core/Devtools/openFileInEditor.js +1 -0
- package/Libraries/Core/Devtools/openURLInBrowser.js +1 -0
- package/Libraries/Core/Devtools/parseErrorStack.js +2 -2
- package/Libraries/Core/Devtools/parseHermesStack.js +54 -34
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/InitializeCore.js +2 -1
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -9
- package/Libraries/Core/ReactNativeVersionCheck.win32.js +1 -9
- package/Libraries/Core/Timers/JSTimers.js +1 -1
- package/Libraries/Core/Timers/immediateShim.js +1 -0
- package/Libraries/Core/Timers/queueMicrotask.js +1 -1
- package/Libraries/Core/setUpAlert.js +1 -1
- package/Libraries/Core/setUpDOM.js +18 -0
- package/Libraries/Core/setUpDeveloperTools.js +1 -1
- package/Libraries/Core/setUpGlobals.js +5 -2
- package/Libraries/Core/setUpNavigator.js +6 -5
- package/Libraries/Core/setUpPerformance.js +23 -13
- package/Libraries/Core/setUpReactDevTools.js +2 -0
- package/Libraries/Core/setUpSegmentFetcher.js +0 -41
- package/Libraries/Core/setUpTimers.js +2 -2
- package/Libraries/DOM/Geometry/DOMRect.js +82 -0
- package/Libraries/DOM/Geometry/DOMRectReadOnly.js +188 -0
- package/Libraries/DOM/Nodes/ReactNativeElement.js +75 -0
- package/Libraries/DOM/Nodes/ReadOnlyElement.js +89 -0
- package/Libraries/DOM/Nodes/ReadOnlyNode.js +167 -0
- package/Libraries/DOM/OldStyleCollections/ArrayLikeUtils.js +46 -0
- package/Libraries/DOM/OldStyleCollections/DOMRectList.js +76 -0
- package/Libraries/DOM/OldStyleCollections/HTMLCollection.js +82 -0
- package/Libraries/DOM/OldStyleCollections/NodeList.js +104 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.android.js +35 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts +20 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.ios.js +49 -0
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.win32.js +35 -0
- package/Libraries/{Utilities/NativeDevSplitBundleLoader.js → DevToolsSettings/NativeDevToolsSettingsManager.js} +7 -2
- package/Libraries/EventEmitter/NativeEventEmitter.d.ts +1 -2
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +1 -2
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +9 -1
- package/Libraries/Events/EventPolyfill.js +1 -1
- package/Libraries/Image/AssetRegistry.js +1 -1
- package/Libraries/Image/AssetSourceResolver.js +3 -3
- package/Libraries/Image/Image.android.js +4 -1
- package/Libraries/Image/Image.d.ts +63 -2
- package/Libraries/Image/Image.ios.js +3 -0
- package/Libraries/Image/Image.win32.js +3 -0
- package/Libraries/Image/ImageBackground.js +1 -0
- package/Libraries/Image/ImageProps.js +1 -1
- package/Libraries/Image/ImageViewNativeComponent.js +4 -4
- package/Libraries/Image/RelativeImageStub.js +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +1 -1
- package/Libraries/Image/resolveAssetSource.js +1 -1
- package/Libraries/Inspector/DevtoolsOverlay.js +29 -19
- package/Libraries/Inspector/ElementBox.js +4 -1
- package/Libraries/Inspector/Inspector.js +5 -6
- package/Libraries/Inspector/Inspector.win32.js +7 -6
- package/Libraries/Inspector/InspectorOverlay.js +3 -3
- package/Libraries/Inspector/InspectorOverlay.win32.js +2 -1
- package/Libraries/Inspector/NetworkOverlay.js +1 -1
- package/Libraries/Interaction/JSEventLoopWatchdog.js +1 -1
- package/Libraries/Interaction/PanResponder.js +5 -6
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -1
- package/Libraries/Linking/Linking.js +1 -4
- package/Libraries/Lists/FillRateHelper.js +4 -238
- package/Libraries/Lists/FlatList.d.ts +15 -22
- package/Libraries/Lists/FlatList.js +9 -6
- package/Libraries/Lists/SectionList.d.ts +10 -6
- package/Libraries/Lists/SectionList.js +5 -3
- package/Libraries/Lists/SectionListModern.js +3 -3
- package/Libraries/Lists/ViewabilityHelper.js +8 -344
- package/Libraries/Lists/VirtualizeUtils.js +4 -244
- package/Libraries/Lists/VirtualizedList.js +10 -1867
- package/Libraries/Lists/VirtualizedListContext.js +6 -104
- package/Libraries/Lists/VirtualizedSectionList.js +9 -602
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +1 -0
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
- package/Libraries/LogBox/LogBox.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspector.js +1 -3
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +168 -0
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +3 -0
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +193 -0
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -0
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +7 -3
- package/Libraries/LogBox/UI/LogBoxMessage.js +87 -5
- package/Libraries/LogBox/UI/LogBoxNotification.js +5 -7
- package/Libraries/Modal/Modal.js +2 -2
- package/Libraries/NativeComponent/BaseViewConfig.android.js +32 -12
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +43 -19
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +43 -19
- package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +4 -1
- package/Libraries/NativeComponent/ViewConfig.js +1 -0
- package/Libraries/NativeComponent/ViewConfigIgnore.js +1 -4
- package/Libraries/Network/RCTNetworking.android.js +2 -2
- package/Libraries/Network/RCTNetworking.ios.js +1 -1
- package/Libraries/Network/RCTNetworking.win32.js +1 -1
- package/Libraries/Network/XMLHttpRequest.js +1 -1
- package/Libraries/Pressability/Pressability.js +11 -5
- package/Libraries/Pressability/Pressability.win32.js +9 -3
- package/Libraries/ReactNative/AppContainer.js +7 -1
- package/Libraries/ReactNative/AppRegistry.d.ts +1 -1
- package/Libraries/ReactNative/AppRegistry.js +10 -13
- package/Libraries/ReactNative/FabricUIManager.js +24 -8
- package/Libraries/ReactNative/NativeUIManager.js +5 -5
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +10 -10
- package/Libraries/ReactNative/UIManager.js +142 -1
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +5 -5
- package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -1
- package/Libraries/ReactNative/requireNativeComponent.d.ts +1 -1
- package/Libraries/ReactNative/requireNativeComponent.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +26 -3
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +13 -1
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +13 -1
- package/Libraries/Renderer/public/ReactFabricPublicInstanceUtils.js +38 -0
- package/Libraries/Renderer/shims/ReactNativeTypes.js +38 -20
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +7 -7
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Share/Share.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.win32.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +115 -76
- package/Libraries/StyleSheet/StyleSheetTypes.js +188 -33
- package/Libraries/StyleSheet/flattenStyle.js +2 -0
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/processColor.js +1 -1
- package/Libraries/Text/Text.d.ts +12 -2
- package/Libraries/Text/Text.js +50 -41
- package/Libraries/Text/TextProps.js +3 -4
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +6 -0
- package/Libraries/Types/CodegenTypes.js +1 -0
- package/Libraries/UTFSequence.js +3 -1
- package/Libraries/Utilities/Appearance.d.ts +10 -0
- package/Libraries/Utilities/Appearance.js +13 -0
- package/Libraries/Utilities/Dimensions.js +1 -1
- package/Libraries/Utilities/Dimensions.win32.js +1 -1
- package/Libraries/Utilities/GlobalPerformanceLogger.js +12 -1
- package/Libraries/Utilities/HMRClient.js +16 -10
- package/Libraries/Utilities/{createPerformanceLogger.d.ts → IPerformanceLogger.d.ts} +4 -4
- package/Libraries/Utilities/IPerformanceLogger.js +49 -0
- package/Libraries/Utilities/LoadingView.android.js +28 -11
- package/Libraries/Utilities/NativeAppearance.js +1 -0
- package/Libraries/Utilities/NativePlatformConstantsWin.js +1 -1
- package/Libraries/Utilities/PixelRatio.js +2 -2
- package/Libraries/Utilities/Platform.win32.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
- package/Libraries/Utilities/__mocks__/PixelRatio.js +1 -1
- package/Libraries/Utilities/codegenNativeCommands.js +2 -0
- package/Libraries/Utilities/createPerformanceLogger.js +55 -43
- package/Libraries/Utilities/stringifySafe.js +2 -7
- package/Libraries/Utilities/useColorScheme.js +1 -1
- package/Libraries/Utilities/useWindowDimensions.js +3 -3
- package/Libraries/WebPerformance/EventCounts.js +78 -0
- package/Libraries/WebPerformance/MemoryInfo.js +54 -0
- package/Libraries/WebPerformance/NativePerformance.js +38 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.js +22 -7
- package/Libraries/WebPerformance/Performance.js +312 -0
- package/Libraries/WebPerformance/PerformanceEntry.js +45 -0
- package/Libraries/WebPerformance/PerformanceEventTiming.js +38 -0
- package/Libraries/WebPerformance/PerformanceObserver.js +196 -101
- package/Libraries/WebPerformance/RawPerformanceEntry.js +87 -0
- package/Libraries/WebPerformance/ReactNativeStartupTiming.js +65 -0
- package/Libraries/WebPerformance/__mocks__/NativePerformance.js +65 -0
- package/Libraries/WebPerformance/__mocks__/NativePerformanceObserver.js +101 -0
- package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -1
- package/Libraries/vendor/core/ErrorUtils.js +1 -1
- package/Libraries/vendor/emitter/EventEmitter.d.ts +2 -2
- package/Libraries/vendor/emitter/EventEmitter.js +9 -1
- package/flow/global.js +29 -4
- package/flow/jest.js +258 -164
- package/index.js +56 -42
- package/index.win32.js +56 -42
- package/interface.js +1 -1
- package/jest/local-setup.js +33 -0
- package/jest/mockComponent.js +4 -2
- package/jest/mockNativeComponent.js +1 -1
- package/jest/mockScrollView.js +2 -1
- package/jest/react-native-env.js +1 -3
- package/jest/setup.js +11 -8
- package/overrides.json +115 -85
- package/package.json +38 -28
- package/rn-get-polyfills.js +1 -1
- package/src/Libraries/Components/TextInput/TextInput.Types.win32.ts +68 -0
- package/src/Libraries/Components/View/ViewAccessibility.win32.d.ts +5 -5
- package/src/Libraries/Components/View/ViewPropTypes.win32.d.ts +1 -1
- package/types/index.d.ts +2 -6
- package/types/modules/Codegen.d.ts +4 -4
- package/types/modules/globals.d.ts +27 -25
- package/types/public/DeprecatedPropertiesAlias.d.ts +0 -20
- package/types/public/ReactNativeRenderer.d.ts +2 -7
- package/Libraries/Animated/createAnimatedComponentInjection.js +0 -48
- package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +0 -48
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.flow.js +0 -208
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.flow.js +0 -58
- package/Libraries/Components/DatePicker/DatePickerIOS.android.js +0 -47
- package/Libraries/Components/DatePicker/DatePickerIOS.d.ts +0 -92
- package/Libraries/Components/DatePicker/DatePickerIOS.flow.android.js +0 -14
- package/Libraries/Components/DatePicker/DatePickerIOS.flow.ios.js +0 -113
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +0 -242
- package/Libraries/Components/DatePicker/DatePickerIOS.win32.js +0 -47
- package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +0 -60
- package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +0 -26
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +0 -45
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.d.ts +0 -62
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +0 -75
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.win32.js +0 -45
- package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +0 -33
- package/Libraries/Components/SafeAreaView/SafeAreaView.flow.js +0 -19
- package/Libraries/Components/Slider/Slider.d.ts +0 -132
- package/Libraries/Components/Slider/Slider.js +0 -282
- package/Libraries/Components/Slider/SliderNativeComponent.js +0 -56
- package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +0 -23
- package/Libraries/Interaction/Batchinator.js +0 -76
- package/Libraries/Interaction/BridgeSpyStallHandler.js +0 -63
- package/Libraries/Interaction/InteractionStallDebugger.js +0 -23
- package/Libraries/Interaction/PanResponder.flow.js +0 -257
- package/Libraries/Lists/CellRenderMask.js +0 -155
- package/Libraries/Lists/ChildListCollection.js +0 -72
- package/Libraries/Lists/StateSafePureComponent.js +0 -85
- package/Libraries/Lists/VirtualizedList.d.ts +0 -347
- package/Libraries/Lists/VirtualizedListCellRenderer.js +0 -259
- package/Libraries/Lists/VirtualizedListProps.js +0 -279
- package/Libraries/Performance/PureComponentDebug.js +0 -74
- package/Libraries/Reliability/UserFlow.js +0 -158
- package/Libraries/Renderer/implementations/ReactNativeRenderer.d.ts +0 -149
- package/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -141
- package/Libraries/Utilities/MatrixMath.js +0 -748
- package/Libraries/Utilities/buildStyleInterpolator.js +0 -209
- package/Libraries/Utilities/clamp.js +0 -23
- package/Libraries/Utilities/deprecatedPropType.js +0 -36
- package/Libraries/Utilities/groupByEveryN.js +0 -51
- package/Libraries/Utilities/mergeIntoFast.js +0 -26
- package/Libraries/Utilities/setAndForwardRef.js +0 -71
- package/Libraries/Utilities/truncate.js +0 -51
- package/flow/JSITimerInternalType.js +0 -30
- package/flow/use-sync-external-store.js +0 -19
|
@@ -60,21 +60,31 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig =
|
|
|
60
60
|
borderRadius: true,
|
|
61
61
|
nestedScrollEnabled: true,
|
|
62
62
|
borderStyle: true,
|
|
63
|
-
borderRightColor: {
|
|
64
|
-
|
|
63
|
+
borderRightColor: {
|
|
64
|
+
process: require('../../StyleSheet/processColor').default,
|
|
65
|
+
},
|
|
66
|
+
borderColor: {
|
|
67
|
+
process: require('../../StyleSheet/processColor').default,
|
|
68
|
+
},
|
|
65
69
|
borderBottomColor: {
|
|
66
|
-
process: require('../../StyleSheet/processColor'),
|
|
70
|
+
process: require('../../StyleSheet/processColor').default,
|
|
67
71
|
},
|
|
68
72
|
persistentScrollbar: true,
|
|
69
|
-
endFillColor: {
|
|
73
|
+
endFillColor: {
|
|
74
|
+
process: require('../../StyleSheet/processColor').default,
|
|
75
|
+
},
|
|
70
76
|
fadingEdgeLength: true,
|
|
71
77
|
overScrollMode: true,
|
|
72
78
|
borderTopLeftRadius: true,
|
|
73
79
|
scrollPerfTag: true,
|
|
74
|
-
borderTopColor: {
|
|
80
|
+
borderTopColor: {
|
|
81
|
+
process: require('../../StyleSheet/processColor').default,
|
|
82
|
+
},
|
|
75
83
|
removeClippedSubviews: true,
|
|
76
84
|
borderTopRightRadius: true,
|
|
77
|
-
borderLeftColor: {
|
|
85
|
+
borderLeftColor: {
|
|
86
|
+
process: require('../../StyleSheet/processColor').default,
|
|
87
|
+
},
|
|
78
88
|
pointerEvents: true,
|
|
79
89
|
},
|
|
80
90
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type {LayoutEvent} from '../../Types/CoreEventTypes';
|
|
12
12
|
|
|
13
13
|
import Animated from '../../Animated/Animated';
|
|
14
|
+
import {isPublicInstance as isFabricPublicInstance} from '../../Renderer/public/ReactFabricPublicInstanceUtils';
|
|
14
15
|
import StyleSheet from '../../StyleSheet/StyleSheet';
|
|
15
16
|
import Platform from '../../Utilities/Platform';
|
|
16
17
|
import useMergeRefs from '../../Utilities/useMergeRefs';
|
|
@@ -64,10 +65,7 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
|
|
|
64
65
|
ref.setNextHeaderY = value => {
|
|
65
66
|
setNextHeaderLayoutY(value);
|
|
66
67
|
};
|
|
67
|
-
|
|
68
|
-
// $FlowFixMe[prop-missing]
|
|
69
|
-
const _internalInstanceHandler = ref['_internalInstanceHandle']; // eslint-disable-line dot-notation
|
|
70
|
-
setIsFabric(Boolean(_internalInstanceHandler?.stateNode?.canonical));
|
|
68
|
+
setIsFabric(isFabricPublicInstance(ref));
|
|
71
69
|
};
|
|
72
70
|
const ref: (React.ElementRef<typeof Animated.View> | null) => void =
|
|
73
71
|
// $FlowFixMe[incompatible-type] - Ref is mutated by `callbackRef`.
|
|
@@ -134,7 +132,7 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
|
|
|
134
132
|
// platform to JS, so we need the ShadowTree to have knowledge
|
|
135
133
|
// of the current position.
|
|
136
134
|
const animatedValueListener = useCallback(
|
|
137
|
-
({value}) => {
|
|
135
|
+
({value}: $FlowFixMe) => {
|
|
138
136
|
const _debounceTimeout: number = Platform.OS === 'android' ? 15 : 64;
|
|
139
137
|
// When the AnimatedInterpolation is recreated, it always initializes
|
|
140
138
|
// to a value of zero and emits a value change of 0 to its listeners.
|
|
@@ -256,13 +254,13 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
|
|
|
256
254
|
setMeasured(true);
|
|
257
255
|
|
|
258
256
|
props.onLayout(event);
|
|
259
|
-
const child = React.Children.only(props.children);
|
|
257
|
+
const child = React.Children.only<$FlowFixMe>(props.children);
|
|
260
258
|
if (child.props.onLayout) {
|
|
261
259
|
child.props.onLayout(event);
|
|
262
260
|
}
|
|
263
261
|
};
|
|
264
262
|
|
|
265
|
-
const child = React.Children.only(props.children);
|
|
263
|
+
const child = React.Children.only<$FlowFixMe>(props.children);
|
|
266
264
|
|
|
267
265
|
// TODO T68319535: remove this if NativeAnimated is rewritten for Fabric
|
|
268
266
|
const passthroughAnimatedPropExplicitValues =
|
|
@@ -41,7 +41,7 @@ const ScrollViewViewConfig = {
|
|
|
41
41
|
directionalLockEnabled: true,
|
|
42
42
|
disableIntervalMomentum: true,
|
|
43
43
|
endFillColor: {
|
|
44
|
-
process: require('../../StyleSheet/processColor'),
|
|
44
|
+
process: require('../../StyleSheet/processColor').default,
|
|
45
45
|
},
|
|
46
46
|
fadingEdgeLength: true,
|
|
47
47
|
indicatorStyle: true,
|
|
@@ -238,9 +238,11 @@ class StatusBar extends React.Component<Props> {
|
|
|
238
238
|
});
|
|
239
239
|
|
|
240
240
|
// Timer for updating the native module values at the end of the frame.
|
|
241
|
+
// $FlowFixMe[missing-local-annot]
|
|
241
242
|
static _updateImmediate = null;
|
|
242
243
|
|
|
243
244
|
// The current merged values from the props stack.
|
|
245
|
+
// $FlowFixMe[missing-local-annot]
|
|
244
246
|
static _currentValues = null;
|
|
245
247
|
|
|
246
248
|
// TODO(janic): Provide a real API to deal with status bar height. See the
|
|
@@ -387,6 +389,7 @@ class StatusBar extends React.Component<Props> {
|
|
|
387
389
|
return newEntry;
|
|
388
390
|
}
|
|
389
391
|
|
|
392
|
+
// $FlowFixMe[missing-local-annot]
|
|
390
393
|
_stackEntry = null;
|
|
391
394
|
|
|
392
395
|
componentDidMount() {
|
|
@@ -157,10 +157,12 @@ const SwitchWithForwardedRef: React.AbstractComponent<
|
|
|
157
157
|
|
|
158
158
|
const ref = useMergeRefs(nativeSwitchRef, forwardedRef);
|
|
159
159
|
|
|
160
|
-
const [native, setNative] = React.useState({value: null});
|
|
160
|
+
const [native, setNative] = React.useState({value: (null: ?boolean)});
|
|
161
161
|
|
|
162
162
|
const handleChange = (event: SwitchChangeEvent) => {
|
|
163
|
+
// $FlowFixMe[unused-promise]
|
|
163
164
|
onChange?.(event);
|
|
165
|
+
// $FlowFixMe[unused-promise]
|
|
164
166
|
onValueChange?.(event.nativeEvent.value);
|
|
165
167
|
setNative({value: event.nativeEvent.value});
|
|
166
168
|
};
|
|
@@ -677,35 +677,39 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
|
|
|
677
677
|
placeholder: true,
|
|
678
678
|
inlineImagePadding: true,
|
|
679
679
|
contextMenuHidden: true,
|
|
680
|
-
textShadowColor: {
|
|
680
|
+
textShadowColor: {
|
|
681
|
+
process: require('../../StyleSheet/processColor').default,
|
|
682
|
+
},
|
|
681
683
|
maxLength: true,
|
|
682
684
|
selectTextOnFocus: true,
|
|
683
685
|
textShadowRadius: true,
|
|
684
686
|
underlineColorAndroid: {
|
|
685
|
-
process: require('../../StyleSheet/processColor'),
|
|
687
|
+
process: require('../../StyleSheet/processColor').default,
|
|
686
688
|
},
|
|
687
689
|
textDecorationLine: true,
|
|
688
690
|
submitBehavior: true,
|
|
689
691
|
textAlignVertical: true,
|
|
690
692
|
fontStyle: true,
|
|
691
693
|
textShadowOffset: true,
|
|
692
|
-
selectionColor: {process: require('../../StyleSheet/processColor')},
|
|
694
|
+
selectionColor: {process: require('../../StyleSheet/processColor').default},
|
|
693
695
|
selection: true,
|
|
694
|
-
placeholderTextColor: {
|
|
696
|
+
placeholderTextColor: {
|
|
697
|
+
process: require('../../StyleSheet/processColor').default,
|
|
698
|
+
},
|
|
695
699
|
importantForAutofill: true,
|
|
696
700
|
lineHeight: true,
|
|
697
701
|
textTransform: true,
|
|
698
702
|
returnKeyType: true,
|
|
699
703
|
keyboardType: true,
|
|
700
704
|
multiline: true,
|
|
701
|
-
color: {process: require('../../StyleSheet/processColor')},
|
|
705
|
+
color: {process: require('../../StyleSheet/processColor').default},
|
|
702
706
|
autoComplete: true,
|
|
703
707
|
numberOfLines: true,
|
|
704
708
|
letterSpacing: true,
|
|
705
709
|
returnKeyLabel: true,
|
|
706
710
|
fontSize: true,
|
|
707
711
|
onKeyPress: true,
|
|
708
|
-
cursorColor: {process: require('../../StyleSheet/processColor')},
|
|
712
|
+
cursorColor: {process: require('../../StyleSheet/processColor').default},
|
|
709
713
|
text: true,
|
|
710
714
|
showSoftInputOnFocus: true,
|
|
711
715
|
textAlign: true,
|
|
@@ -727,16 +731,22 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
|
|
|
727
731
|
editable: true,
|
|
728
732
|
fontVariant: true,
|
|
729
733
|
borderBottomRightRadius: true,
|
|
730
|
-
borderBottomColor: {
|
|
734
|
+
borderBottomColor: {
|
|
735
|
+
process: require('../../StyleSheet/processColor').default,
|
|
736
|
+
},
|
|
731
737
|
borderRadius: true,
|
|
732
|
-
borderRightColor: {
|
|
733
|
-
|
|
738
|
+
borderRightColor: {
|
|
739
|
+
process: require('../../StyleSheet/processColor').default,
|
|
740
|
+
},
|
|
741
|
+
borderColor: {process: require('../../StyleSheet/processColor').default},
|
|
734
742
|
borderTopRightRadius: true,
|
|
735
743
|
borderStyle: true,
|
|
736
744
|
borderBottomLeftRadius: true,
|
|
737
|
-
borderLeftColor: {
|
|
745
|
+
borderLeftColor: {
|
|
746
|
+
process: require('../../StyleSheet/processColor').default,
|
|
747
|
+
},
|
|
738
748
|
borderTopLeftRadius: true,
|
|
739
|
-
borderTopColor: {process: require('../../StyleSheet/processColor')},
|
|
749
|
+
borderTopColor: {process: require('../../StyleSheet/processColor').default},
|
|
740
750
|
},
|
|
741
751
|
};
|
|
742
752
|
|
|
@@ -23,7 +23,7 @@ export class InputAccessoryView extends React.Component<InputAccessoryViewProps>
|
|
|
23
23
|
export interface InputAccessoryViewProps {
|
|
24
24
|
backgroundColor?: ColorValue | undefined;
|
|
25
25
|
|
|
26
|
-
children?: React.ReactNode;
|
|
26
|
+
children?: React.ReactNode | undefined;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* An ID which is used to associate this InputAccessoryView to specified TextInput(s).
|
|
@@ -116,15 +116,21 @@ const RCTTextInputViewConfig = {
|
|
|
116
116
|
textShadowRadius: true,
|
|
117
117
|
letterSpacing: true,
|
|
118
118
|
textDecorationStyle: true,
|
|
119
|
-
textDecorationColor: {
|
|
120
|
-
|
|
119
|
+
textDecorationColor: {
|
|
120
|
+
process: require('../../StyleSheet/processColor').default,
|
|
121
|
+
},
|
|
122
|
+
color: {process: require('../../StyleSheet/processColor').default},
|
|
121
123
|
maxFontSizeMultiplier: true,
|
|
122
|
-
textShadowColor: {
|
|
124
|
+
textShadowColor: {
|
|
125
|
+
process: require('../../StyleSheet/processColor').default,
|
|
126
|
+
},
|
|
123
127
|
editable: true,
|
|
124
128
|
inputAccessoryViewID: true,
|
|
125
129
|
caretHidden: true,
|
|
126
130
|
enablesReturnKeyAutomatically: true,
|
|
127
|
-
placeholderTextColor: {
|
|
131
|
+
placeholderTextColor: {
|
|
132
|
+
process: require('../../StyleSheet/processColor').default,
|
|
133
|
+
},
|
|
128
134
|
clearButtonMode: true,
|
|
129
135
|
keyboardType: true,
|
|
130
136
|
selection: true,
|
|
@@ -132,7 +138,7 @@ const RCTTextInputViewConfig = {
|
|
|
132
138
|
submitBehavior: true,
|
|
133
139
|
mostRecentEventCount: true,
|
|
134
140
|
scrollEnabled: true,
|
|
135
|
-
selectionColor: {process: require('../../StyleSheet/processColor')},
|
|
141
|
+
selectionColor: {process: require('../../StyleSheet/processColor').default},
|
|
136
142
|
contextMenuHidden: true,
|
|
137
143
|
secureTextEntry: true,
|
|
138
144
|
placeholder: true,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';
|
|
2
|
+
interface IChangePayload {
|
|
3
|
+
eventCount: number;
|
|
4
|
+
target: number;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;
|
|
8
|
+
interface IRange {
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
}
|
|
12
|
+
interface ITextInputPayload {
|
|
13
|
+
eventCount: number;
|
|
14
|
+
previousText: string;
|
|
15
|
+
range: Readonly<IRange>;
|
|
16
|
+
target: number;
|
|
17
|
+
text: number;
|
|
18
|
+
}
|
|
19
|
+
export type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;
|
|
20
|
+
interface IContentSize {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}
|
|
24
|
+
interface IContentSizeChangePayload {
|
|
25
|
+
target: number;
|
|
26
|
+
contentSize: Readonly<IContentSize>;
|
|
27
|
+
}
|
|
28
|
+
export type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;
|
|
29
|
+
export type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
|
|
30
|
+
export type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
|
|
31
|
+
export interface ISelection extends IRange {
|
|
32
|
+
}
|
|
33
|
+
interface ISelectionPayload {
|
|
34
|
+
selection: ISelection;
|
|
35
|
+
target: number;
|
|
36
|
+
}
|
|
37
|
+
export type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;
|
|
38
|
+
interface IKeyPressPayload {
|
|
39
|
+
key: string;
|
|
40
|
+
target?: number;
|
|
41
|
+
eventCount?: number;
|
|
42
|
+
}
|
|
43
|
+
export type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;
|
|
44
|
+
interface IEditingPayload {
|
|
45
|
+
eventCount: number;
|
|
46
|
+
text: string;
|
|
47
|
+
target: number;
|
|
48
|
+
}
|
|
49
|
+
export type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;
|
|
50
|
+
export type IPasswordRules = string;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.Types.win32.js","sourceRoot":"","sources":["../../../src/Libraries/Components/TextInput/TextInput.Types.win32.ts"],"names":[],"mappings":"","sourcesContent":["import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';\n\n// TODO: How do we keep in sync with synthetic events\n\ninterface IChangePayload {\n eventCount: number;\n target: number;\n text: string;\n}\nexport type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;\n\ninterface IRange {\n start: number;\n end: number;\n}\ninterface ITextInputPayload {\n eventCount: number;\n previousText: string;\n range: Readonly<IRange>;\n target: number;\n text: number;\n}\nexport type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;\n\ninterface IContentSize {\n width: number;\n height: number;\n}\ninterface IContentSizeChangePayload {\n target: number;\n contentSize: Readonly<IContentSize>;\n}\nexport type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;\n\n// TODO: Why doesn't this guy work\n// interface ITargetPayload {\n// target: number;\n// }\n\n// type ITargetEvent = NativeSyntheticEvent<Readonly<ITargetPayload>>;\n\nexport type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;\nexport type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;\n\nexport interface ISelection extends IRange { }\ninterface ISelectionPayload {\n selection: ISelection;\n target: number;\n}\nexport type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;\n\n// TODO: Why is this one diffferent?\ninterface IKeyPressPayload {\n key: string;\n target?: number;\n eventCount?: number;\n}\nexport type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;\n\ninterface IEditingPayload {\n eventCount: number;\n text: string;\n target: number;\n}\nexport type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;\n\n// TODO: Why do I need this one\nexport type IPasswordRules = string;\n"]}
|
|
@@ -21,21 +21,21 @@ import {
|
|
|
21
21
|
NativeTouchEvent,
|
|
22
22
|
TargetedEvent,
|
|
23
23
|
} from '../../Types/CoreEventTypes';
|
|
24
|
-
import
|
|
24
|
+
import EventEmitter from '../../vendor/emitter/EventEmitter';
|
|
25
25
|
import {AccessibilityProps} from '../View/ViewAccessibility';
|
|
26
26
|
import {ViewProps} from '../View/ViewPropTypes';
|
|
27
27
|
|
|
28
28
|
export type KeyboardType =
|
|
29
29
|
| 'default'
|
|
30
|
-
| '
|
|
30
|
+
| 'number-pad'
|
|
31
|
+
| 'decimal-pad'
|
|
31
32
|
| 'numeric'
|
|
33
|
+
| 'email-address'
|
|
32
34
|
| 'phone-pad'
|
|
33
|
-
| '
|
|
34
|
-
| 'decimal-pad';
|
|
35
|
+
| 'url';
|
|
35
36
|
export type KeyboardTypeIOS =
|
|
36
37
|
| 'ascii-capable'
|
|
37
38
|
| 'numbers-and-punctuation'
|
|
38
|
-
| 'url'
|
|
39
39
|
| 'name-phone-pad'
|
|
40
40
|
| 'twitter'
|
|
41
41
|
| 'web-search';
|
|
@@ -272,6 +272,16 @@ export interface TextInputIOSProps {
|
|
|
272
272
|
* If false, scrolling of the text view will be disabled. The default value is true. Only works with multiline={true}
|
|
273
273
|
*/
|
|
274
274
|
scrollEnabled?: boolean | undefined;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Set line break strategy on iOS.
|
|
278
|
+
*/
|
|
279
|
+
lineBreakStrategyIOS?:
|
|
280
|
+
| 'none'
|
|
281
|
+
| 'standard'
|
|
282
|
+
| 'hangul-word'
|
|
283
|
+
| 'push-out'
|
|
284
|
+
| undefined;
|
|
275
285
|
}
|
|
276
286
|
|
|
277
287
|
/**
|
|
@@ -556,7 +556,7 @@ export type Props = $ReadOnly<{|
|
|
|
556
556
|
* On Android devices manufactured by Xiaomi with Android Q,
|
|
557
557
|
* when keyboardType equals 'email-address'this will be set
|
|
558
558
|
* in native to 'true' to prevent a system related crash. This
|
|
559
|
-
* will cause cursor to be
|
|
559
|
+
* will cause cursor to be disabled as a side-effect.
|
|
560
560
|
*
|
|
561
561
|
*/
|
|
562
562
|
caretHidden?: ?boolean,
|