Skip to content

Commit

Permalink
Flow strict DrawerLayout (#22152)
Browse files Browse the repository at this point in the history
Summary:
Issue in focus: #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: #22152

Differential Revision: D12930872

Pulled By: RSNara

fbshipit-source-id: f9706ed2e49d9ccedfa331594c886d2d3b615db5
  • Loading branch information
flowkraD authored and facebook-github-bot committed Nov 5, 2018
1 parent cc90c20 commit f9050e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const DrawerLayoutAndroid = createReactClass({

mixins: [NativeMethodsMixin],

getDefaultProps: function(): Object {
getDefaultProps: function(): {drawerBackgroundColor: string} {
return {
drawerBackgroundColor: 'white',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('deepFreezeAndThrowOnMutationInDev', function() {
expect(o.key1.key2).toBe('newValue');
});

it('shouldn\'t recurse infinitely', () => {
it("shouldn't recurse infinitely", () => {
__DEV__ = true;
const o = {};
o.circular = o;
Expand Down

0 comments on commit f9050e0

Please sign in to comment.