mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Exact-by-default codemod for react-native-github
Summary: We are rolling out exact-by-default syntax to xplat/js. I had to manually move around some comments to preserve proper placement. Changelog: [Internal] Reviewed By: jbrown215 Differential Revision: D18633611 fbshipit-source-id: 48f7468dcc55b1d00985419d035a61c6820b3abe
This commit is contained in:
1 parent
1ad0862363
commit
8553e1acc4
205 files changed
+879
-379
No files matched your search
@@ -19,18 +19,11 @@ const {ProgressBarAndroid: ProgressBar} = require('react-native');
|
||||
import type {ProgressBarAndroidProps} from '../../../../Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
||||
|
||||
type MovingBarProps = $ReadOnly<{|
|
||||
...$Diff<
|
||||
ProgressBarAndroidProps,
|
||||
{
|
||||
progress: ?number,
|
||||
},
|
||||
>,
|
||||
...$Diff<ProgressBarAndroidProps, {progress: ?number, ...}>,
|
||||
indeterminate: false,
|
||||
|}>;
|
||||
|
||||
type MovingBarState = {
|
||||
progress: number,
|
||||
};
|
||||
type MovingBarState = {progress: number, ...};
|
||||
|
||||
class MovingBar extends React.Component<MovingBarProps, MovingBarState> {
|
||||
_intervalID: ?IntervalID = null;
|
||||
@@ -57,7 +50,7 @@ class MovingBar extends React.Component<MovingBarProps, MovingBarState> {
|
||||
}
|
||||
}
|
||||
|
||||
class ProgressBarAndroidExample extends React.Component<{}> {
|
||||
class ProgressBarAndroidExample extends React.Component<{...}> {
|
||||
render(): React.Node {
|
||||
return (
|
||||
<RNTesterPage title="ProgressBar Examples">
|
||||
|
||||
Reference in new issue
Block a user