react-native-macos 0.0.0-d74468479 → 0.0.0-d9a5f84e0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Animated/AnimatedEvent.js +10 -5
- package/Libraries/Animated/AnimatedImplementation.js +39 -7
- package/Libraries/Animated/AnimatedMock.js +6 -3
- package/Libraries/Animated/AnimatedPlatformConfig.js +13 -0
- package/Libraries/Animated/Easing.js +36 -36
- package/Libraries/Animated/animations/Animation.js +5 -3
- package/Libraries/Animated/animations/DecayAnimation.js +5 -0
- package/Libraries/Animated/animations/SpringAnimation.js +15 -0
- package/Libraries/Animated/animations/TimingAnimation.js +14 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +5 -4
- package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +4 -3
- package/Libraries/Animated/nodes/AnimatedDivision.js +5 -4
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +5 -3
- package/Libraries/Animated/nodes/AnimatedModulo.js +4 -3
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +5 -4
- package/Libraries/Animated/nodes/AnimatedNode.js +17 -5
- package/Libraries/Animated/nodes/AnimatedProps.js +11 -3
- package/Libraries/Animated/nodes/AnimatedStyle.js +6 -4
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +5 -4
- package/Libraries/Animated/nodes/AnimatedTracking.js +7 -5
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -3
- package/Libraries/Animated/nodes/AnimatedValue.js +2 -0
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +5 -4
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +3 -3
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -0
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +12 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +130 -68
- package/Libraries/Components/Slider/SliderNativeComponent.js +2 -2
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +115 -2
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +8 -1
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +4 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +31 -8
- package/Libraries/Components/Touchable/TouchableOpacity.js +0 -1
- package/Libraries/Components/View/ViewPropTypes.js +7 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -0
- package/Libraries/Core/Timers/JSTimers.js +17 -28
- package/Libraries/Image/Image.android.js +16 -7
- package/Libraries/Image/ImageViewNativeComponent.js +94 -57
- package/Libraries/Image/RCTImageView.mm +22 -14
- package/Libraries/Image/TextInlineImageNativeComponent.js +10 -68
- package/Libraries/Lists/VirtualizedList.js +8 -6
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +0 -1
- package/Libraries/Modal/Modal.js +0 -1
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +39 -0
- package/Libraries/Network/XMLHttpRequest.js +0 -1
- package/Libraries/Performance/QuickPerformanceLogger.js +17 -0
- package/Libraries/ReactNative/UIManager.js +5 -10
- package/Libraries/ReactNative/UIManagerInjection.js +3 -3
- package/Libraries/ReactNative/getNativeComponentAttributes.js +4 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +340 -393
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +340 -393
- package/Libraries/Text/RCTTextAttributes.m +18 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -0
- package/Libraries/WebSocket/RCTSRWebSocket.m +4 -0
- package/React/Base/RCTConvert.m +18 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTAlertController.m +6 -0
- package/React/CoreModules/RCTDevSettings.mm +33 -12
- package/React/CoreModules/RCTExceptionsManager.mm +1 -1
- package/React/Fabric/RCTSurfacePresenter.mm +0 -2
- package/React/Views/RCTFont.mm +11 -9
- package/React/Views/RCTModalHostView.h +5 -0
- package/React/Views/RCTModalHostViewManager.m +3 -0
- package/React/Views/RCTSliderManager.m +1 -0
- package/ReactAndroid/build.gradle +14 -5
- package/ReactAndroid/gradle.properties +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +12 -4
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java +39 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/SubtractionAnimatedNode.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.java +119 -78
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.cpp +7 -35
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.h +5 -18
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerDelegate.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerInterface.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +23 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +1 -8
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +40 -16
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.cpp +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.h +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.h +3 -3
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
- package/ReactAndroid/src/main/third-party/java/okhttp/BUCK +4 -4
- package/ReactCommon/cxxreact/JSBigString.cpp +0 -65
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +8 -3
- package/ReactCommon/react/renderer/attributedstring/conversions.h +38 -38
- package/ReactCommon/react/renderer/components/text/conversions.h +4 -4
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -5
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +10 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +64 -85
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +101 -27
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +86 -165
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +22 -57
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +36 -26
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +9 -19
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +30 -12
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +4 -11
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +1 -0
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +4 -0
- package/jest/mockModal.js +2 -2
- package/package.json +11 -48
- package/react.gradle +0 -4
- package/scripts/find-node.sh +7 -0
- package/scripts/react_native_pods.rb +6 -5
- package/scripts/react_native_pods_utils/script_phases.rb +2 -2
- package/scripts/react_native_pods_utils/script_phases.sh +1 -1
- package/template/Gemfile.lock +3 -3
- package/template/_flowconfig +1 -1
- package/template/_gitignore +2 -1
- package/template/android/build.gradle +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/android/settings.gradle +1 -5
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -3
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -113
- package/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType.js +0 -28
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +0 -131
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.ios.js +0 -82
- package/Libraries/DeprecatedPropTypes/DeprecatedImageSourcePropType.js +0 -40
- package/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedLayoutPropTypes.js +0 -233
- package/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js +0 -24
- package/Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js +0 -30
- package/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js +0 -32
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +0 -693
- package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
- package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -168
- package/Libraries/DeprecatedPropTypes/DeprecatedTransformPropTypes.js +0 -99
- package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +0 -46
- package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +0 -408
- package/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js +0 -68
- package/Libraries/DeprecatedPropTypes/deprecatedCreateStrictShapeTypeChecker.js +0 -86
- package/ReactCommon/react/renderer/mapbuffer/primitives.h +0 -91
- package/flow-typed/npm/prop-types_v15.x.x.js +0 -42
|
@@ -87,7 +87,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
|
|
|
87
87
|
|
|
88
88
|
_onKeyboardChange = (event: ?KeyboardEvent) => {
|
|
89
89
|
this._keyboardEvent = event;
|
|
90
|
-
this.
|
|
90
|
+
this._updateBottomIfNecessary();
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
_onLayout = (event: ViewLayoutEvent) => {
|
|
@@ -99,7 +99,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
if (wasFrameNull) {
|
|
102
|
-
this.
|
|
102
|
+
this._updateBottomIfNecessary();
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
if (this.props.onLayout) {
|
|
@@ -107,7 +107,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
_updateBottomIfNecessary = () => {
|
|
111
111
|
if (this._keyboardEvent == null) {
|
|
112
112
|
this.setState({bottom: 0});
|
|
113
113
|
return;
|
|
@@ -37,6 +37,18 @@ const AndroidHorizontalScrollViewNativeComponent: HostComponent<Props> = NativeC
|
|
|
37
37
|
snapToStart: true,
|
|
38
38
|
snapToOffsets: true,
|
|
39
39
|
contentOffset: true,
|
|
40
|
+
borderBottomLeftRadius: true,
|
|
41
|
+
borderBottomRightRadius: true,
|
|
42
|
+
borderRadius: true,
|
|
43
|
+
borderStyle: true,
|
|
44
|
+
borderRightColor: {process: require('../../StyleSheet/processColor')},
|
|
45
|
+
borderColor: {process: require('../../StyleSheet/processColor')},
|
|
46
|
+
borderBottomColor: {process: require('../../StyleSheet/processColor')},
|
|
47
|
+
borderTopLeftRadius: true,
|
|
48
|
+
borderTopColor: {process: require('../../StyleSheet/processColor')},
|
|
49
|
+
removeClippedSubviews: true,
|
|
50
|
+
borderTopRightRadius: true,
|
|
51
|
+
borderLeftColor: {process: require('../../StyleSheet/processColor')},
|
|
40
52
|
},
|
|
41
53
|
}),
|
|
42
54
|
);
|
|
@@ -11,77 +11,139 @@
|
|
|
11
11
|
import type {ScrollViewNativeProps as Props} from './ScrollViewNativeComponentType';
|
|
12
12
|
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
|
|
13
13
|
import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';
|
|
14
|
+
import Platform from '../../Utilities/Platform';
|
|
15
|
+
|
|
16
|
+
const RCTScrollViewViewConfig =
|
|
17
|
+
Platform.OS === 'android'
|
|
18
|
+
? {
|
|
19
|
+
uiViewClassName: 'RCTScrollView',
|
|
20
|
+
bubblingEventTypes: {},
|
|
21
|
+
directEventTypes: {
|
|
22
|
+
topMomentumScrollBegin: {
|
|
23
|
+
registrationName: 'onMomentumScrollBegin',
|
|
24
|
+
},
|
|
25
|
+
topMomentumScrollEnd: {
|
|
26
|
+
registrationName: 'onMomentumScrollEnd',
|
|
27
|
+
},
|
|
28
|
+
topScroll: {
|
|
29
|
+
registrationName: 'onScroll',
|
|
30
|
+
},
|
|
31
|
+
topScrollBeginDrag: {
|
|
32
|
+
registrationName: 'onScrollBeginDrag',
|
|
33
|
+
},
|
|
34
|
+
topScrollEndDrag: {
|
|
35
|
+
registrationName: 'onScrollEndDrag',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
validAttributes: {
|
|
39
|
+
contentOffset: {
|
|
40
|
+
diff: require('../../Utilities/differ/pointsDiffer'),
|
|
41
|
+
},
|
|
42
|
+
decelerationRate: true,
|
|
43
|
+
disableIntervalMomentum: true,
|
|
44
|
+
pagingEnabled: true,
|
|
45
|
+
scrollEnabled: true,
|
|
46
|
+
showsVerticalScrollIndicator: true,
|
|
47
|
+
snapToAlignment: true,
|
|
48
|
+
snapToEnd: true,
|
|
49
|
+
snapToInterval: true,
|
|
50
|
+
snapToOffsets: true,
|
|
51
|
+
snapToStart: true,
|
|
52
|
+
borderBottomLeftRadius: true,
|
|
53
|
+
borderBottomRightRadius: true,
|
|
54
|
+
sendMomentumEvents: true,
|
|
55
|
+
borderRadius: true,
|
|
56
|
+
nestedScrollEnabled: true,
|
|
57
|
+
borderStyle: true,
|
|
58
|
+
borderRightColor: {process: require('../../StyleSheet/processColor')},
|
|
59
|
+
borderColor: {process: require('../../StyleSheet/processColor')},
|
|
60
|
+
borderBottomColor: {
|
|
61
|
+
process: require('../../StyleSheet/processColor'),
|
|
62
|
+
},
|
|
63
|
+
persistentScrollbar: true,
|
|
64
|
+
endFillColor: {process: require('../../StyleSheet/processColor')},
|
|
65
|
+
fadingEdgeLength: true,
|
|
66
|
+
overScrollMode: true,
|
|
67
|
+
borderTopLeftRadius: true,
|
|
68
|
+
scrollPerfTag: true,
|
|
69
|
+
borderTopColor: {process: require('../../StyleSheet/processColor')},
|
|
70
|
+
removeClippedSubviews: true,
|
|
71
|
+
borderTopRightRadius: true,
|
|
72
|
+
borderLeftColor: {process: require('../../StyleSheet/processColor')},
|
|
73
|
+
},
|
|
74
|
+
}
|
|
75
|
+
: {
|
|
76
|
+
uiViewClassName: 'RCTScrollView',
|
|
77
|
+
bubblingEventTypes: {},
|
|
78
|
+
directEventTypes: {
|
|
79
|
+
topMomentumScrollBegin: {
|
|
80
|
+
registrationName: 'onMomentumScrollBegin',
|
|
81
|
+
},
|
|
82
|
+
topMomentumScrollEnd: {
|
|
83
|
+
registrationName: 'onMomentumScrollEnd',
|
|
84
|
+
},
|
|
85
|
+
topScroll: {
|
|
86
|
+
registrationName: 'onScroll',
|
|
87
|
+
},
|
|
88
|
+
topScrollBeginDrag: {
|
|
89
|
+
registrationName: 'onScrollBeginDrag',
|
|
90
|
+
},
|
|
91
|
+
topScrollEndDrag: {
|
|
92
|
+
registrationName: 'onScrollEndDrag',
|
|
93
|
+
},
|
|
94
|
+
topScrollToTop: {
|
|
95
|
+
registrationName: 'onScrollToTop',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
validAttributes: {
|
|
99
|
+
alwaysBounceHorizontal: true,
|
|
100
|
+
alwaysBounceVertical: true,
|
|
101
|
+
automaticallyAdjustContentInsets: true,
|
|
102
|
+
automaticallyAdjustKeyboardInsets: true,
|
|
103
|
+
automaticallyAdjustsScrollIndicatorInsets: true,
|
|
104
|
+
bounces: true,
|
|
105
|
+
bouncesZoom: true,
|
|
106
|
+
canCancelContentTouches: true,
|
|
107
|
+
centerContent: true,
|
|
108
|
+
contentInset: {
|
|
109
|
+
diff: require('../../Utilities/differ/insetsDiffer'),
|
|
110
|
+
},
|
|
111
|
+
contentOffset: {
|
|
112
|
+
diff: require('../../Utilities/differ/pointsDiffer'),
|
|
113
|
+
},
|
|
114
|
+
contentInsetAdjustmentBehavior: true,
|
|
115
|
+
decelerationRate: true,
|
|
116
|
+
directionalLockEnabled: true,
|
|
117
|
+
disableIntervalMomentum: true,
|
|
118
|
+
indicatorStyle: true,
|
|
119
|
+
inverted: true,
|
|
120
|
+
keyboardDismissMode: true,
|
|
121
|
+
maintainVisibleContentPosition: true,
|
|
122
|
+
maximumZoomScale: true,
|
|
123
|
+
minimumZoomScale: true,
|
|
124
|
+
pagingEnabled: true,
|
|
125
|
+
pinchGestureEnabled: true,
|
|
126
|
+
scrollEnabled: true,
|
|
127
|
+
scrollEventThrottle: true,
|
|
128
|
+
scrollIndicatorInsets: {
|
|
129
|
+
diff: require('../../Utilities/differ/insetsDiffer'),
|
|
130
|
+
},
|
|
131
|
+
scrollToOverflowEnabled: true,
|
|
132
|
+
scrollsToTop: true,
|
|
133
|
+
showsHorizontalScrollIndicator: true,
|
|
134
|
+
showsVerticalScrollIndicator: true,
|
|
135
|
+
snapToAlignment: true,
|
|
136
|
+
snapToEnd: true,
|
|
137
|
+
snapToInterval: true,
|
|
138
|
+
snapToOffsets: true,
|
|
139
|
+
snapToStart: true,
|
|
140
|
+
zoomScale: true,
|
|
141
|
+
},
|
|
142
|
+
};
|
|
14
143
|
|
|
15
144
|
const ScrollViewNativeComponent: HostComponent<Props> = NativeComponentRegistry.get<Props>(
|
|
16
145
|
'RCTScrollView',
|
|
17
|
-
() =>
|
|
18
|
-
uiViewClassName: 'RCTScrollView',
|
|
19
|
-
bubblingEventTypes: {},
|
|
20
|
-
directEventTypes: {
|
|
21
|
-
topScrollToTop: {
|
|
22
|
-
registrationName: 'onScrollToTop',
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
validAttributes: {
|
|
26
|
-
alwaysBounceHorizontal: true,
|
|
27
|
-
alwaysBounceVertical: true,
|
|
28
|
-
automaticallyAdjustContentInsets: true,
|
|
29
|
-
automaticallyAdjustKeyboardInsets: true,
|
|
30
|
-
automaticallyAdjustsScrollIndicatorInsets: true,
|
|
31
|
-
bounces: true,
|
|
32
|
-
bouncesZoom: true,
|
|
33
|
-
canCancelContentTouches: true,
|
|
34
|
-
centerContent: true,
|
|
35
|
-
contentInset: {
|
|
36
|
-
diff: require('../../Utilities/differ/pointsDiffer'),
|
|
37
|
-
},
|
|
38
|
-
contentOffset: {
|
|
39
|
-
diff: require('../../Utilities/differ/pointsDiffer'),
|
|
40
|
-
},
|
|
41
|
-
contentInsetAdjustmentBehavior: true,
|
|
42
|
-
decelerationRate: true,
|
|
43
|
-
directionalLockEnabled: true,
|
|
44
|
-
disableIntervalMomentum: true,
|
|
45
|
-
endFillColor: {
|
|
46
|
-
process: require('../../StyleSheet/processColor'),
|
|
47
|
-
},
|
|
48
|
-
fadingEdgeLength: true,
|
|
49
|
-
indicatorStyle: true,
|
|
50
|
-
inverted: true,
|
|
51
|
-
keyboardDismissMode: true,
|
|
52
|
-
maintainVisibleContentPosition: true,
|
|
53
|
-
maximumZoomScale: true,
|
|
54
|
-
minimumZoomScale: true,
|
|
55
|
-
nestedScrollEnabled: true,
|
|
56
|
-
onMomentumScrollBegin: true,
|
|
57
|
-
onMomentumScrollEnd: true,
|
|
58
|
-
onScroll: true,
|
|
59
|
-
onScrollBeginDrag: true,
|
|
60
|
-
onScrollEndDrag: true,
|
|
61
|
-
onScrollToTop: true,
|
|
62
|
-
overScrollMode: true,
|
|
63
|
-
pagingEnabled: true,
|
|
64
|
-
persistentScrollbar: true,
|
|
65
|
-
pinchGestureEnabled: true,
|
|
66
|
-
scrollEnabled: true,
|
|
67
|
-
scrollEventThrottle: true,
|
|
68
|
-
scrollIndicatorInsets: {
|
|
69
|
-
diff: require('../../Utilities/differ/pointsDiffer'),
|
|
70
|
-
},
|
|
71
|
-
scrollPerfTag: true,
|
|
72
|
-
scrollToOverflowEnabled: true,
|
|
73
|
-
scrollsToTop: true,
|
|
74
|
-
sendMomentumEvents: true,
|
|
75
|
-
showsHorizontalScrollIndicator: true,
|
|
76
|
-
showsVerticalScrollIndicator: true,
|
|
77
|
-
snapToAlignment: true,
|
|
78
|
-
snapToEnd: true,
|
|
79
|
-
snapToInterval: true,
|
|
80
|
-
snapToOffsets: true,
|
|
81
|
-
snapToStart: true,
|
|
82
|
-
zoomScale: true,
|
|
83
|
-
},
|
|
84
|
-
}),
|
|
146
|
+
() => RCTScrollViewViewConfig,
|
|
85
147
|
);
|
|
86
148
|
|
|
87
149
|
export default ScrollViewNativeComponent;
|
|
@@ -48,8 +48,8 @@ type NativeProps = $ReadOnly<{|
|
|
|
48
48
|
|
|
49
49
|
// Events
|
|
50
50
|
onChange?: ?BubblingEventHandler<Event>,
|
|
51
|
-
onValueChange?: ?BubblingEventHandler<Event
|
|
52
|
-
onSlidingComplete?: ?DirectEventHandler<Event
|
|
51
|
+
onValueChange?: ?BubblingEventHandler<Event>,
|
|
52
|
+
onSlidingComplete?: ?DirectEventHandler<Event>,
|
|
53
53
|
|}>;
|
|
54
54
|
|
|
55
55
|
export default (codegenNativeComponent<NativeProps>('Slider', {
|
|
@@ -25,7 +25,6 @@ import type {
|
|
|
25
25
|
} from '../../StyleSheet/StyleSheet';
|
|
26
26
|
import codegenNativeCommands from '../../Utilities/codegenNativeCommands';
|
|
27
27
|
import type {TextInputNativeCommands} from './TextInputNativeCommands';
|
|
28
|
-
import AndroidTextInputViewConfig from './AndroidTextInputViewConfig';
|
|
29
28
|
import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';
|
|
30
29
|
|
|
31
30
|
export type KeyboardType =
|
|
@@ -596,7 +595,121 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
|
596
595
|
|
|
597
596
|
let AndroidTextInputNativeComponent = NativeComponentRegistry.get<NativeProps>(
|
|
598
597
|
'AndroidTextInput',
|
|
599
|
-
() =>
|
|
598
|
+
() => ({
|
|
599
|
+
uiViewClassName: 'AndroidTextInput',
|
|
600
|
+
bubblingEventTypes: {
|
|
601
|
+
topBlur: {
|
|
602
|
+
phasedRegistrationNames: {
|
|
603
|
+
bubbled: 'onBlur',
|
|
604
|
+
captured: 'onBlurCapture',
|
|
605
|
+
},
|
|
606
|
+
},
|
|
607
|
+
topEndEditing: {
|
|
608
|
+
phasedRegistrationNames: {
|
|
609
|
+
bubbled: 'onEndEditing',
|
|
610
|
+
captured: 'onEndEditingCapture',
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
topFocus: {
|
|
614
|
+
phasedRegistrationNames: {
|
|
615
|
+
bubbled: 'onFocus',
|
|
616
|
+
captured: 'onFocusCapture',
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
topKeyPress: {
|
|
620
|
+
phasedRegistrationNames: {
|
|
621
|
+
bubbled: 'onKeyPress',
|
|
622
|
+
captured: 'onKeyPressCapture',
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
topSubmitEditing: {
|
|
626
|
+
phasedRegistrationNames: {
|
|
627
|
+
bubbled: 'onSubmitEditing',
|
|
628
|
+
captured: 'onSubmitEditingCapture',
|
|
629
|
+
},
|
|
630
|
+
},
|
|
631
|
+
topTextInput: {
|
|
632
|
+
phasedRegistrationNames: {
|
|
633
|
+
bubbled: 'onTextInput',
|
|
634
|
+
captured: 'onTextInputCapture',
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
directEventTypes: {
|
|
639
|
+
topScroll: {
|
|
640
|
+
registrationName: 'onScroll',
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
validAttributes: {
|
|
644
|
+
maxFontSizeMultiplier: true,
|
|
645
|
+
adjustsFontSizeToFit: true,
|
|
646
|
+
minimumFontScale: true,
|
|
647
|
+
autoFocus: true,
|
|
648
|
+
placeholder: true,
|
|
649
|
+
inlineImagePadding: true,
|
|
650
|
+
contextMenuHidden: true,
|
|
651
|
+
textShadowColor: {process: require('../../StyleSheet/processColor')},
|
|
652
|
+
maxLength: true,
|
|
653
|
+
selectTextOnFocus: true,
|
|
654
|
+
textShadowRadius: true,
|
|
655
|
+
underlineColorAndroid: {
|
|
656
|
+
process: require('../../StyleSheet/processColor'),
|
|
657
|
+
},
|
|
658
|
+
textDecorationLine: true,
|
|
659
|
+
blurOnSubmit: true,
|
|
660
|
+
textAlignVertical: true,
|
|
661
|
+
fontStyle: true,
|
|
662
|
+
textShadowOffset: true,
|
|
663
|
+
selectionColor: {process: require('../../StyleSheet/processColor')},
|
|
664
|
+
selection: true,
|
|
665
|
+
placeholderTextColor: {process: require('../../StyleSheet/processColor')},
|
|
666
|
+
importantForAutofill: true,
|
|
667
|
+
lineHeight: true,
|
|
668
|
+
textTransform: true,
|
|
669
|
+
returnKeyType: true,
|
|
670
|
+
keyboardType: true,
|
|
671
|
+
multiline: true,
|
|
672
|
+
color: {process: require('../../StyleSheet/processColor')},
|
|
673
|
+
autoComplete: true,
|
|
674
|
+
numberOfLines: true,
|
|
675
|
+
letterSpacing: true,
|
|
676
|
+
returnKeyLabel: true,
|
|
677
|
+
fontSize: true,
|
|
678
|
+
onKeyPress: true,
|
|
679
|
+
cursorColor: {process: require('../../StyleSheet/processColor')},
|
|
680
|
+
text: true,
|
|
681
|
+
showSoftInputOnFocus: true,
|
|
682
|
+
textAlign: true,
|
|
683
|
+
autoCapitalize: true,
|
|
684
|
+
autoCorrect: true,
|
|
685
|
+
caretHidden: true,
|
|
686
|
+
secureTextEntry: true,
|
|
687
|
+
textBreakStrategy: true,
|
|
688
|
+
onScroll: true,
|
|
689
|
+
onContentSizeChange: true,
|
|
690
|
+
disableFullscreenUI: true,
|
|
691
|
+
includeFontPadding: true,
|
|
692
|
+
fontWeight: true,
|
|
693
|
+
fontFamily: true,
|
|
694
|
+
allowFontScaling: true,
|
|
695
|
+
onSelectionChange: true,
|
|
696
|
+
mostRecentEventCount: true,
|
|
697
|
+
inlineImageLeft: true,
|
|
698
|
+
editable: true,
|
|
699
|
+
fontVariant: true,
|
|
700
|
+
borderBottomRightRadius: true,
|
|
701
|
+
borderBottomColor: {process: require('../../StyleSheet/processColor')},
|
|
702
|
+
borderRadius: true,
|
|
703
|
+
borderRightColor: {process: require('../../StyleSheet/processColor')},
|
|
704
|
+
borderColor: {process: require('../../StyleSheet/processColor')},
|
|
705
|
+
borderTopRightRadius: true,
|
|
706
|
+
borderStyle: true,
|
|
707
|
+
borderBottomLeftRadius: true,
|
|
708
|
+
borderLeftColor: {process: require('../../StyleSheet/processColor')},
|
|
709
|
+
borderTopLeftRadius: true,
|
|
710
|
+
borderTopColor: {process: require('../../StyleSheet/processColor')},
|
|
711
|
+
},
|
|
712
|
+
}),
|
|
600
713
|
);
|
|
601
714
|
|
|
602
715
|
// flowlint-next-line unclear-type:off
|
|
@@ -24,7 +24,14 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
|
24
24
|
|
|
25
25
|
const MultilineTextInputNativeComponent: HostComponent<mixed> = NativeComponentRegistry.get<mixed>(
|
|
26
26
|
'RCTMultilineTextInputView',
|
|
27
|
-
() =>
|
|
27
|
+
() => ({
|
|
28
|
+
uiViewClassName: 'RCTMultilineTextInputView',
|
|
29
|
+
...RCTTextInputViewConfig,
|
|
30
|
+
validAttributes: {
|
|
31
|
+
...RCTTextInputViewConfig.validAttributes,
|
|
32
|
+
dataDetectorTypes: true,
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
28
35
|
);
|
|
29
36
|
|
|
30
37
|
// flowlint-next-line unclear-type:off
|
|
@@ -24,7 +24,10 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
|
24
24
|
|
|
25
25
|
const SinglelineTextInputNativeComponent: HostComponent<mixed> = NativeComponentRegistry.get<mixed>(
|
|
26
26
|
'RCTSinglelineTextInputView',
|
|
27
|
-
() =>
|
|
27
|
+
() => ({
|
|
28
|
+
uiViewClassName: 'RCTSinglelineTextInputView',
|
|
29
|
+
...RCTTextInputViewConfig,
|
|
30
|
+
}),
|
|
28
31
|
);
|
|
29
32
|
|
|
30
33
|
// flowlint-next-line unclear-type:off
|
|
@@ -10,8 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
import type {PartialViewConfig} from '../../Renderer/shims/ReactNativeTypes';
|
|
12
12
|
|
|
13
|
+
type PartialViewConfigWithoutName = $Rest<
|
|
14
|
+
PartialViewConfig,
|
|
15
|
+
{uiViewClassName: string},
|
|
16
|
+
>;
|
|
17
|
+
|
|
13
18
|
const RCTTextInputViewConfig = {
|
|
14
|
-
uiViewClassName: 'RCTSinglelineTextInputView',
|
|
15
19
|
bubblingEventTypes: {
|
|
16
20
|
topBlur: {
|
|
17
21
|
phasedRegistrationNames: {
|
|
@@ -25,6 +29,12 @@ const RCTTextInputViewConfig = {
|
|
|
25
29
|
captured: 'onChangeCapture',
|
|
26
30
|
},
|
|
27
31
|
},
|
|
32
|
+
topContentSizeChange: {
|
|
33
|
+
phasedRegistrationNames: {
|
|
34
|
+
captured: 'onContentSizeChangeCapture',
|
|
35
|
+
bubbled: 'onContentSizeChange',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
28
38
|
topEndEditing: {
|
|
29
39
|
phasedRegistrationNames: {
|
|
30
40
|
bubbled: 'onEndEditing',
|
|
@@ -69,7 +79,23 @@ const RCTTextInputViewConfig = {
|
|
|
69
79
|
},
|
|
70
80
|
},
|
|
71
81
|
},
|
|
72
|
-
directEventTypes: {
|
|
82
|
+
directEventTypes: {
|
|
83
|
+
topTextInput: {
|
|
84
|
+
registrationName: 'onTextInput',
|
|
85
|
+
},
|
|
86
|
+
topKeyPressSync: {
|
|
87
|
+
registrationName: 'onKeyPressSync',
|
|
88
|
+
},
|
|
89
|
+
topScroll: {
|
|
90
|
+
registrationName: 'onScroll',
|
|
91
|
+
},
|
|
92
|
+
topSelectionChange: {
|
|
93
|
+
registrationName: 'onSelectionChange',
|
|
94
|
+
},
|
|
95
|
+
topChangeSync: {
|
|
96
|
+
registrationName: 'onChangeSync',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
73
99
|
validAttributes: {
|
|
74
100
|
fontSize: true,
|
|
75
101
|
fontWeight: true,
|
|
@@ -97,23 +123,18 @@ const RCTTextInputViewConfig = {
|
|
|
97
123
|
caretHidden: true,
|
|
98
124
|
enablesReturnKeyAutomatically: true,
|
|
99
125
|
placeholderTextColor: {process: require('../../StyleSheet/processColor')},
|
|
100
|
-
onSelectionChange: true,
|
|
101
126
|
clearButtonMode: true,
|
|
102
|
-
onContentSizeChange: true,
|
|
103
127
|
keyboardType: true,
|
|
104
128
|
selection: true,
|
|
105
129
|
returnKeyType: true,
|
|
106
130
|
blurOnSubmit: true,
|
|
107
131
|
mostRecentEventCount: true,
|
|
108
|
-
onChange: true,
|
|
109
132
|
scrollEnabled: true,
|
|
110
133
|
selectionColor: {process: require('../../StyleSheet/processColor')},
|
|
111
134
|
contextMenuHidden: true,
|
|
112
135
|
secureTextEntry: true,
|
|
113
|
-
onTextInput: true,
|
|
114
136
|
placeholder: true,
|
|
115
137
|
autoCorrect: true,
|
|
116
|
-
onScroll: true,
|
|
117
138
|
multiline: true,
|
|
118
139
|
textContentType: true,
|
|
119
140
|
maxLength: true,
|
|
@@ -124,7 +145,9 @@ const RCTTextInputViewConfig = {
|
|
|
124
145
|
selectTextOnFocus: true,
|
|
125
146
|
text: true,
|
|
126
147
|
clearTextOnFocus: true,
|
|
148
|
+
showSoftInputOnFocus: true,
|
|
149
|
+
autoFocus: true,
|
|
127
150
|
},
|
|
128
151
|
};
|
|
129
152
|
|
|
130
|
-
module.exports = (RCTTextInputViewConfig:
|
|
153
|
+
module.exports = (RCTTextInputViewConfig: PartialViewConfigWithoutName);
|
|
@@ -496,6 +496,13 @@ export type ViewProps = $ReadOnly<{|
|
|
|
496
496
|
*/
|
|
497
497
|
accessibilityActions?: ?$ReadOnlyArray<AccessibilityActionInfo>,
|
|
498
498
|
|
|
499
|
+
/**
|
|
500
|
+
* Specifies the nativeID of the associated label text. When the assistive technology focuses on the component with this props, the text is read aloud.
|
|
501
|
+
*
|
|
502
|
+
* @platform android
|
|
503
|
+
*/
|
|
504
|
+
accessibilityLabelledBy?: ?string | ?Array<string>,
|
|
505
|
+
|
|
499
506
|
/**
|
|
500
507
|
* Views that are only used to layout their children or otherwise don't draw
|
|
501
508
|
* anything may be automatically removed from the native hierarchy as an
|
|
@@ -41,6 +41,7 @@ exports.checkVersions = function checkVersions(): void {
|
|
|
41
41
|
function _formatVersion(
|
|
42
42
|
version:
|
|
43
43
|
| {major: number, minor: number, patch: number, prerelease: ?number}
|
|
44
|
+
| {major: number, minor: number, patch: number, prerelease: ?string}
|
|
44
45
|
| $TEMPORARY$object<{
|
|
45
46
|
major: number,
|
|
46
47
|
minor: number,
|
|
@@ -42,7 +42,7 @@ let requestIdleCallbacks: Array<number> = [];
|
|
|
42
42
|
const requestIdleCallbackTimeouts: {[number]: number, ...} = {};
|
|
43
43
|
|
|
44
44
|
let GUID = 1;
|
|
45
|
-
|
|
45
|
+
const errors: Array<Error> = [];
|
|
46
46
|
|
|
47
47
|
let hasEmittedTimeDriftWarning = false;
|
|
48
48
|
|
|
@@ -130,11 +130,7 @@ function _callTimer(timerID: number, frameTime: number, didTimeout: ?boolean) {
|
|
|
130
130
|
}
|
|
131
131
|
} catch (e) {
|
|
132
132
|
// Don't rethrow so that we can run all timers.
|
|
133
|
-
|
|
134
|
-
errors = [e];
|
|
135
|
-
} else {
|
|
136
|
-
errors.push(e);
|
|
137
|
-
}
|
|
133
|
+
errors.push(e);
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
if (__DEV__) {
|
|
@@ -352,14 +348,13 @@ const JSTimers = {
|
|
|
352
348
|
'Cannot call `callTimers` with an empty list of IDs.',
|
|
353
349
|
);
|
|
354
350
|
|
|
355
|
-
errors =
|
|
351
|
+
errors.length = 0;
|
|
356
352
|
for (let i = 0; i < timersToCall.length; i++) {
|
|
357
353
|
_callTimer(timersToCall[i], 0);
|
|
358
354
|
}
|
|
359
355
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
const errorCount = errors.length;
|
|
356
|
+
const errorCount = errors.length;
|
|
357
|
+
if (errorCount > 0) {
|
|
363
358
|
if (errorCount > 1) {
|
|
364
359
|
// Throw all the other errors in a setTimeout, which will throw each
|
|
365
360
|
// error one at a time
|
|
@@ -367,13 +362,11 @@ const JSTimers = {
|
|
|
367
362
|
JSTimers.setTimeout(
|
|
368
363
|
(error => {
|
|
369
364
|
throw error;
|
|
370
|
-
// $FlowFixMe[incompatible-use]
|
|
371
365
|
}).bind(null, errors[ii]),
|
|
372
366
|
0,
|
|
373
367
|
);
|
|
374
368
|
}
|
|
375
369
|
}
|
|
376
|
-
// $FlowFixMe[incompatible-use]
|
|
377
370
|
throw errors[0];
|
|
378
371
|
}
|
|
379
372
|
},
|
|
@@ -386,7 +379,7 @@ const JSTimers = {
|
|
|
386
379
|
return;
|
|
387
380
|
}
|
|
388
381
|
|
|
389
|
-
errors =
|
|
382
|
+
errors.length = 0;
|
|
390
383
|
if (requestIdleCallbacks.length > 0) {
|
|
391
384
|
const passIdleCallbacks = requestIdleCallbacks;
|
|
392
385
|
requestIdleCallbacks = [];
|
|
@@ -400,13 +393,11 @@ const JSTimers = {
|
|
|
400
393
|
setSendIdleEvents(false);
|
|
401
394
|
}
|
|
402
395
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
);
|
|
409
|
-
}
|
|
396
|
+
errors.forEach(error =>
|
|
397
|
+
JSTimers.setTimeout(() => {
|
|
398
|
+
throw error;
|
|
399
|
+
}, 0),
|
|
400
|
+
);
|
|
410
401
|
},
|
|
411
402
|
|
|
412
403
|
/**
|
|
@@ -414,15 +405,13 @@ const JSTimers = {
|
|
|
414
405
|
* before we hand control back to native.
|
|
415
406
|
*/
|
|
416
407
|
callReactNativeMicrotasks() {
|
|
417
|
-
errors =
|
|
408
|
+
errors.length = 0;
|
|
418
409
|
while (_callReactNativeMicrotasksPass()) {}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
);
|
|
425
|
-
}
|
|
410
|
+
errors.forEach(error =>
|
|
411
|
+
JSTimers.setTimeout(() => {
|
|
412
|
+
throw error;
|
|
413
|
+
}, 0),
|
|
414
|
+
);
|
|
426
415
|
},
|
|
427
416
|
|
|
428
417
|
/**
|