Skip to content

Commit a0acbd6

Browse files
swashcapfacebook-github-bot
authored andcommitted
Export Modal’s Flow types (#25554)
Summary: I'd like to use `Modal`’s flow types in my application to make a reusable component. ## Changelog [JavaScript] [Added] - Exported `Modal`’s types Pull Request resolved: #25554 Test Plan: n/a Differential Revision: D16180231 Pulled By: cpojer fbshipit-source-id: 9cfd5163a187954783102bfe4d9b4d1dbc8c6e6d
1 parent dc52f8c commit a0acbd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Modal/Modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ import type {SyntheticEvent} from '../Types/CoreEventTypes';
4242
// destroyed before the callback is fired.
4343
let uniqueModalIdentifier = 0;
4444

45-
type OrientationChangeEvent = SyntheticEvent<
45+
export type OrientationChangeEvent = SyntheticEvent<
4646
$ReadOnly<{|
4747
orientation: 'portrait' | 'landscape',
4848
|}>,
4949
>;
5050

51-
type Props = $ReadOnly<{|
51+
export type Props = $ReadOnly<{|
5252
...ViewProps,
5353

5454
/**

0 commit comments

Comments
 (0)