Skip to content

Commit faae1e5

Browse files
authored
Merge d8be239 into 54dfee8
2 parents 54dfee8 + d8be239 commit faae1e5

File tree

4 files changed

+11
-24
lines changed

4 files changed

+11
-24
lines changed

Libraries/Components/Picker/PickerIOS.macos.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ var processColor = require('processColor');
2525
var createReactClass = require('create-react-class');
2626
var requireNativeComponent = require('requireNativeComponent');
2727

28+
type PickerIOSProps = $ReadOnly<{|
29+
...ViewProps,
30+
children: React.ChildrenArray<React.Element<typeof PickerIOSItem>>,
31+
itemStyle?: ?TextStyleProp,
32+
onChange?: ?(event: PickerIOSChangeEvent) => mixed,
33+
onValueChange?: ?(newValue: any, newIndex: number) => mixed,
34+
selectedValue: any,
35+
|}>;
36+
2837
var PickerIOS = createReactClass({
2938
displayName: 'PickerIOS',
3039
mixins: [NativeMethodsMixin],
@@ -33,7 +42,7 @@ var PickerIOS = createReactClass({
3342
return this._stateFromProps(this.props);
3443
},
3544

36-
componentWillReceiveProps: function(nextProps) {
45+
componentWillReceiveProps: function(nextProps: PickerIOSProps) {
3746
this.setState(this._stateFromProps(nextProps));
3847
},
3948

Libraries/Components/View/PlatformViewPropTypes.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

Libraries/Components/View/ViewPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,4 +573,4 @@ export type ViewProps = $ReadOnly<{|
573573
* Any additional platform-specific view prop types, or prop type overrides.
574574
*/
575575
...PlatformViewPropTypes,
576-
|};
576+
|}>;

Libraries/Vibration/VibrationIOS.ios.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @format
8-
* @flow strict-local
98
*/
109

1110
'use strict';

0 commit comments

Comments
 (0)