From 6743d15329df1f52527709ce741033de61d56907 Mon Sep 17 00:00:00 2001 From: Pieter Vanderwerff Date: Thu, 10 Nov 2022 18:52:53 -0800 Subject: [PATCH] Enforce empty array providers in arvr/js Summary: Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D41206042 fbshipit-source-id: 0d6a87fdb693a01a97783f5428111f428a94f80e --- Libraries/Animated/nodes/AnimatedTransform.js | 2 +- Libraries/Lists/__flowtests__/SectionList-flowtest.js | 2 +- Libraries/Network/RCTNetworking.android.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/Animated/nodes/AnimatedTransform.js b/Libraries/Animated/nodes/AnimatedTransform.js index 3b553c9a3d..b36c970770 100644 --- a/Libraries/Animated/nodes/AnimatedTransform.js +++ b/Libraries/Animated/nodes/AnimatedTransform.js @@ -68,7 +68,7 @@ export default class AnimatedTransform extends AnimatedWithChildren { } __getNativeConfig(): any { - const transConfigs = []; + const transConfigs: Array = []; this._transforms.forEach(transform => { for (const key in transform) { diff --git a/Libraries/Lists/__flowtests__/SectionList-flowtest.js b/Libraries/Lists/__flowtests__/SectionList-flowtest.js index 4112d87a6f..9f878d89b0 100644 --- a/Libraries/Lists/__flowtests__/SectionList-flowtest.js +++ b/Libraries/Lists/__flowtests__/SectionList-flowtest.js @@ -76,7 +76,7 @@ module.exports = { }, testBadInheritedDefaultProp(): React.MixedElement { - const sections = []; + const sections: $FlowFixMe = []; return ( { - const headerArray = []; + const headerArray: Array
= []; for (const name in headers) { headerArray.push([name, headers[name]]); }