mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
Remove unused suppressions in xplat/js
Summary: There were approximately 350 unused suppressions in xplat/js when checking with .flowconfig.android The flow team is partially responsible for this, since our release process hasn't changed since we added the flowconfig. In the diff beneath this one, I added the functionality necessary for us to not add any more unused suppressions. To test it, I made this diff. The steps were: 1. Start iOS server 2. Start android server 3. remove unused ios suppressions 4. remove unused android suppressions 5. add ios suppressions with site=react_native_ios_fb 6. add android suppressions with site=react_native_android_fb 7. remove unused ios suppressions. The ones that are unused are ones where an android comment was inserted as well, since the ios comment no longer is next to the error 8. add suppressions using ios flowconfig with site=react_native_fb 9. remove unused android suppressions. The unused ones are ones that were moved up when the cross-platform suppressions were inserted. I'm going to make this into a script to make sure we don't contribute anymore unused suppressions from our side. The controller you requested could not be found. nolint Reviewed By: TheSavior Differential Revision: D10053893 fbshipit-source-id: 7bee212062f8b2153c6ba906a30cf40df2224019
This commit is contained in:
committed by
Facebook Github Bot
parent
236bb018ab
commit
0ee23d0beb
@@ -136,11 +136,13 @@ class Picker extends React.Component<PickerProps> {
|
||||
|
||||
render() {
|
||||
if (Platform.OS === 'ios') {
|
||||
// $FlowFixMe found when converting React.createClass to ES6
|
||||
/* $FlowFixMe(>=0.81.0 site=react_native_ios_fb) This suppression was
|
||||
* added when renaming suppression sites. */
|
||||
return <PickerIOS {...this.props}>{this.props.children}</PickerIOS>;
|
||||
} else if (Platform.OS === 'android') {
|
||||
return (
|
||||
// $FlowFixMe found when converting React.createClass to ES6
|
||||
/* $FlowFixMe(>=0.81.0 site=react_native_android_fb) This suppression
|
||||
* was added when renaming suppression sites. */
|
||||
<PickerAndroid {...this.props}>{this.props.children}</PickerAndroid>
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user