Skip to content

Commit b5155fb

Browse files
huntiefacebook-github-bot
authored andcommitted
Replace $FlowFixMe in DrawerLayoutAndroid (facebook#48569)
Summary: Pull Request resolved: facebook#48569 Changelog: [General][Changed] - Improve types on DrawerLayoutAndroid Reviewed By: cipolleschi Differential Revision: D67975172 fbshipit-source-id: 922d51d78b9e035f7703b1d53af39fa6dae8060b
1 parent f797738 commit b5155fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010

1111
'use strict';
1212

13+
import typeof DrawerLayoutAndroid from './DrawerLayoutAndroid.android';
14+
1315
module.exports =
14-
require('../UnimplementedViews/UnimplementedView') as $FlowFixMe;
16+
require('../UnimplementedViews/UnimplementedView') as $FlowFixMe as DrawerLayoutAndroid;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ declare export default typeof AndroidDrawerLayoutNativeComponent;
17861786
`;
17871787

17881788
exports[`public API should not change unintentionally Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js 1`] = `
1789-
"declare module.exports: $FlowFixMe;
1789+
"declare module.exports: DrawerLayoutAndroid;
17901790
"
17911791
`;
17921792

0 commit comments

Comments
 (0)