Skip to content

Commit 1051bd8

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Explicitly type UIManagerProperties (facebook#48587)
Summary: Pull Request resolved: facebook#48587 Changelog: [Internal] Reviewed By: cortinico, huntie Differential Revision: D67977469 fbshipit-source-id: 0f866aeaa3d19ba2bc01d2e4685487c9b1a3329f
1 parent 071506f commit 1051bd8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/react-native/Libraries/ReactNative/UIManagerProperties.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* accessed. Once UIManager property accesses for view managers has been fully
2727
* deprecated, this file will also be removed.
2828
*/
29-
module.exports = [
29+
const UIManagerProperties: $ReadOnlyArray<string> = [
3030
'clearJSResponder',
3131
'configureNextLayoutAnimation',
3232
'createView',
@@ -59,3 +59,5 @@ module.exports = [
5959
'genericDirectEventTypes',
6060
'lazilyLoadView',
6161
];
62+
63+
module.exports = UIManagerProperties;

packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7717,7 +7717,8 @@ declare module.exports: UIManager;
77177717
`;
77187718

77197719
exports[`public API should not change unintentionally Libraries/ReactNative/UIManagerProperties.js 1`] = `
7720-
"declare module.exports: $FlowFixMe;
7720+
"declare const UIManagerProperties: $ReadOnlyArray<string>;
7721+
declare module.exports: UIManagerProperties;
77217722
"
77227723
`;
77237724

0 commit comments

Comments
 (0)