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: https://github.com/facebook/react-native/pull/22152 Differential Revision: D12930872 Pulled By: RSNara fbshipit-source-id: f9706ed2e49d9ccedfa331594c886d2d3b615db5
This commit is contained in:
Родитель
cc90c20bf6
Коммит
f9050e0908
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче