Skip to content

Commit e2004d2

Browse files
flowkraDfacebook-github-bot
flowkraD
authored andcommitted
Flow strict DrawerLayout (facebook#22152)
Summary: Issue in focus: facebook#22100 The only occurrence of `Object` was replaced with the appropriate flow type A Lint error was encountered in `deepFreezeAndThrowOnMutationInDev-test.js` when running `npm run lint` and was fixed by running `yarn prettier` Pull Request resolved: facebook#22152 Differential Revision: D12930872 Pulled By: RSNara fbshipit-source-id: f9706ed2e49d9ccedfa331594c886d2d3b615db5
1 parent f02574a commit e2004d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const DrawerLayoutAndroid = createReactClass({
152152

153153
mixins: [NativeMethodsMixin],
154154

155-
getDefaultProps: function(): Object {
155+
getDefaultProps: function(): {drawerBackgroundColor: string} {
156156
return {
157157
drawerBackgroundColor: 'white',
158158
};

Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('deepFreezeAndThrowOnMutationInDev', function() {
134134
expect(o.key1.key2).toBe('newValue');
135135
});
136136

137-
it('shouldn\'t recurse infinitely', () => {
137+
it("shouldn't recurse infinitely", () => {
138138
__DEV__ = true;
139139
const o = {};
140140
o.circular = o;

0 commit comments

Comments
 (0)