Skip to content

Commit

Permalink
Re-land stack of D17563110: codemod xplat/js
Browse files Browse the repository at this point in the history
Summary:
The stack of D17563110 was reverted because it triggered a failing OTA job that wasn't caught at land time.

Fixing the issue by reverting the change to `Route.js` and re-landing the rest of the diff.

Differential Revision: D17564219

fbshipit-source-id: 166b50a163ce8ae226de224882a98c40652e29ac
  • Loading branch information
logandaniels authored and facebook-github-bot committed Sep 25, 2019
1 parent 5876052 commit 1bfd15c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Libraries/Animated/src/AnimatedMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import type {Mapping, EventConfig} from './AnimatedEvent';
* animation functions from AnimatedImplementation with empty animations for
* predictability in tests.
*/
type CompositeAnimation = {
export type CompositeAnimation = {
start: (callback?: ?EndCallback) => void,
stop: () => void,
reset: () => void,
Expand Down
1 change: 1 addition & 0 deletions Libraries/Components/Picker/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type PickerItemProps = $ReadOnly<{|
/**
* Individual selectable item in a Picker.
*/
export type {PickerItem};
class PickerItem extends React.Component<PickerItemProps> {
render() {
// The items are not rendered directly
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/Touchable/TouchableHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type AndroidProps = $ReadOnly<{|
nextFocusUp?: ?number,
|}>;

type Props = $ReadOnly<{|
export type Props = $ReadOnly<{|
...TouchableWithoutFeedbackProps,
...IOSProps,
...AndroidProps,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/Touchable/TouchableOpacity.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type TVProps = $ReadOnly<{|
tvParallaxProperties?: ?TVParallaxPropertiesType,
|}>;

type Props = $ReadOnly<{|
export type Props = $ReadOnly<{|
...TouchableWithoutFeedbackProps,
...TVProps,
activeOpacity?: ?number,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/ReactNative/AppRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import NativeHeadlessJsTaskSupport from './NativeHeadlessJsTaskSupport';
import HeadlessJsTaskError from './HeadlessJsTaskError';

type Task = (taskData: any) => Promise<void>;
type TaskProvider = () => Task;
export type TaskProvider = () => Task;
type TaskCanceller = () => void;
type TaskCancelProvider = () => TaskCanceller;

Expand Down
1 change: 1 addition & 0 deletions Libraries/Renderer/shims/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export type ViewConfigGetter = () => ReactNativeBaseComponentViewConfig<>;
/**
* Class only exists for its Flow type.
*/
export type {ReactNativeComponent};
class ReactNativeComponent<Props> extends React.Component<Props> {
blur(): void {}
focus(): void {}
Expand Down

0 comments on commit 1bfd15c

Please sign in to comment.