Permalink
Browse files

Flow strict DrawerLayout (#22152)

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 f9050e09084cf3700bfc1954f97adf0f60cd8d88
@@ -152,7 +152,7 @@ const DrawerLayoutAndroid = createReactClass({

mixins: [NativeMethodsMixin],

getDefaultProps: function(): Object {
getDefaultProps: function(): {drawerBackgroundColor: string} {
return {
drawerBackgroundColor: 'white',
};
@@ -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;

0 comments on commit f9050e0

Please sign in to comment.