From 5eaf6d4525df3e9addff9787fa5a3fc1f1f79cd7 Mon Sep 17 00:00:00 2001 From: flowkraD Date: Mon, 5 Nov 2018 09:27:37 -0800 Subject: [PATCH] Flow strict drawerlayout and fixed lint errors Replaced an instance of keyword object with the flow type of object being returned --- .../Components/DrawerAndroid/DrawerLayoutAndroid.android.js | 2 +- .../__tests__/deepFreezeAndThrowOnMutationInDev-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js index b58385ef9419..a9b00611591e 100644 --- a/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +++ b/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js @@ -152,7 +152,7 @@ const DrawerLayoutAndroid = createReactClass({ mixins: [NativeMethodsMixin], - getDefaultProps: function(): Object { + getDefaultProps: function(): {drawerBackgroundColor: string} { return { drawerBackgroundColor: 'white', }; diff --git a/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js b/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js index 1ed6231c6636..f3f8c016026e 100644 --- a/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js +++ b/Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js @@ -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;