Skip to content

Commit

Permalink
Flow strict in Picker.js, PickerIOS.ios.js, PickerAndroid.android.js …
Browse files Browse the repository at this point in the history
…(#22128)

Summary:
Related to #22100

Turn Flow strict mode on for Picker

- [x] npm run prettier
- [x] npm run flow-check-ios
- [x] npm run flow-check-android
Pull Request resolved: facebook/react-native#22128

Differential Revision: D12946781

Pulled By: mmmulani

fbshipit-source-id: 4d3cb884dd8bf57a43ef8aec4491359e9874d182
  • Loading branch information
nissy-dev authored and facebook-github-bot committed Nov 28, 2018
1 parent 3096fd5 commit 4dd39e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/PermissionsExampleAndroid.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class PermissionsExample extends React.Component<{}, $FlowFixMeState> {
);
}

_onSelectPermission = (permission: string) => {
_onSelectPermission = (permission: string | number) => {
this.setState({
permission: permission,
});
Expand Down
2 changes: 1 addition & 1 deletion js/PickerExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class PickerExample extends React.Component<{}, $FlowFixMeState> {
this.setState({mode: newMode});
};

onValueChange = (key: string, value: string) => {
onValueChange = (key: string, value: string | number) => {
const newState = {};
newState[key] = value;
this.setState(newState);
Expand Down

0 comments on commit 4dd39e1

Please sign in to comment.