From 92073d4a71d50a1ed80cf9cb063a6144fcc8cf19 Mon Sep 17 00:00:00 2001 From: Logan Daniels Date: Wed, 21 Aug 2019 09:56:31 -0700 Subject: [PATCH] Clean-up $TEMPORARY$object in xplat/js/react-native-github Reviewed By: panagosg7 Differential Revision: D16931667 fbshipit-source-id: d87e5ed02bf7f95005cf0f36c3cd127026189058 --- IntegrationTests/AsyncStorageTest.js | 2 +- IntegrationTests/ImageCachePolicyTest.js | 2 +- Libraries/Animated/src/AnimatedEvent.js | 2 +- Libraries/Animated/src/animations/DecayAnimation.js | 4 ++-- .../Animated/src/animations/SpringAnimation.js | 4 ++-- .../Components/DatePicker/DatePickerIOS.ios.js | 4 +--- Libraries/Components/Keyboard/Keyboard.js | 4 ++-- .../Components/Keyboard/KeyboardAvoidingView.js | 5 +---- Libraries/Components/Picker/Picker.js | 4 +--- Libraries/Components/StatusBar/StatusBar.js | 4 ++-- .../Components/View/ReactNativeViewViewConfig.js | 4 ++-- Libraries/Components/View/ViewNativeComponent.js | 6 +++--- Libraries/Core/Timers/JSTimers.js | 4 ++-- Libraries/Experimental/Incremental.js | 6 +++--- Libraries/Experimental/IncrementalPresenter.js | 4 ++-- Libraries/Experimental/WindowedListView.js | 4 ++-- Libraries/Modal/Modal.js | 13 ++++--------- Libraries/ReactNative/AppContainer.js | 2 +- Libraries/ReactNative/DummyUIManager.js | 2 +- .../Renderer/shims/ReactNativeViewConfigRegistry.js | 8 ++++---- Libraries/UTFSequence.js | 4 ++-- .../verifyComponentAttributeEquivalence.js | 2 +- Libraries/YellowBox/UI/YellowBoxPressable.js | 6 +++--- Libraries/vendor/emitter/EventHolder.js | 2 +- RNTester/js/components/ListExampleShared.js | 2 +- RNTester/js/components/TextLegend.js | 4 ++-- .../js/examples/MultiColumn/MultiColumnExample.js | 4 ++-- .../js/examples/SectionList/SectionListExample.js | 4 ++-- RNTester/js/examples/XHR/XHRExampleBinaryUpload.js | 4 +--- RNTester/js/utils/RNTesterList.ios.js | 2 +- 30 files changed, 54 insertions(+), 68 deletions(-) diff --git a/IntegrationTests/AsyncStorageTest.js b/IntegrationTests/AsyncStorageTest.js index 5df923c7f67..070e711b7e5 100644 --- a/IntegrationTests/AsyncStorageTest.js +++ b/IntegrationTests/AsyncStorageTest.js @@ -172,7 +172,7 @@ function testOptimizedMultiGet() { } class AsyncStorageTest extends React.Component<{}, $FlowFixMeState> { - state: any | $TEMPORARY$object<{|done: boolean, messages: string|}> = { + state: any | {|done: boolean, messages: string|} = { messages: 'Initializing...', done: false, }; diff --git a/IntegrationTests/ImageCachePolicyTest.js b/IntegrationTests/ImageCachePolicyTest.js index d25e6c2b86e..2a152ef98f2 100644 --- a/IntegrationTests/ImageCachePolicyTest.js +++ b/IntegrationTests/ImageCachePolicyTest.js @@ -36,7 +36,7 @@ type State = { }; class ImageCachePolicyTest extends React.Component { - state: $FlowFixMe | $TEMPORARY$object<{||}> = {}; + state: $FlowFixMe | {...} = {}; shouldComponentUpdate(nextProps: Props, nextState: State): boolean { const results: Array = TESTS.map(x => nextState[x]); diff --git a/Libraries/Animated/src/AnimatedEvent.js b/Libraries/Animated/src/AnimatedEvent.js index 8e8c9c24068..40a3bd1ae28 100644 --- a/Libraries/Animated/src/AnimatedEvent.js +++ b/Libraries/Animated/src/AnimatedEvent.js @@ -27,7 +27,7 @@ function attachNativeEvent( viewRef: any, eventName: string, argMapping: Array, -): $TEMPORARY$object<{|detach: () => void|}> { +): {|detach: () => void|} { // Find animated values in `argMapping` and create an array representing their // key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x']. const eventMappings = []; diff --git a/Libraries/Animated/src/animations/DecayAnimation.js b/Libraries/Animated/src/animations/DecayAnimation.js index 27ec5d8dd51..68af7f5dcd1 100644 --- a/Libraries/Animated/src/animations/DecayAnimation.js +++ b/Libraries/Animated/src/animations/DecayAnimation.js @@ -45,12 +45,12 @@ class DecayAnimation extends Animation { this.__iterations = config.iterations ?? 1; } - __getNativeAnimationConfig(): $TEMPORARY$object<{| + __getNativeAnimationConfig(): {| deceleration: number, iterations: number, type: $TEMPORARY$string<'decay'>, velocity: number, - |}> { + |} { return { type: 'decay', deceleration: this._deceleration, diff --git a/Libraries/Animated/src/animations/SpringAnimation.js b/Libraries/Animated/src/animations/SpringAnimation.js index 9a16bde6b71..5e34faeb247 100644 --- a/Libraries/Animated/src/animations/SpringAnimation.js +++ b/Libraries/Animated/src/animations/SpringAnimation.js @@ -138,7 +138,7 @@ class SpringAnimation extends Animation { invariant(this._mass > 0, 'Mass value must be greater than 0'); } - __getNativeAnimationConfig(): $TEMPORARY$object<{| + __getNativeAnimationConfig(): {| damping: number, initialVelocity: number, iterations: number, @@ -149,7 +149,7 @@ class SpringAnimation extends Animation { stiffness: number, toValue: any, type: $TEMPORARY$string<'spring'>, - |}> { + |} { return { type: 'spring', overshootClamping: this._overshootClamping, diff --git a/Libraries/Components/DatePicker/DatePickerIOS.ios.js b/Libraries/Components/DatePicker/DatePickerIOS.ios.js index c01a3c495dd..afae770d487 100644 --- a/Libraries/Components/DatePicker/DatePickerIOS.ios.js +++ b/Libraries/Components/DatePicker/DatePickerIOS.ios.js @@ -112,9 +112,7 @@ type Props = $ReadOnly<{| * source of truth. */ class DatePickerIOS extends React.Component { - static DefaultProps: $TEMPORARY$object<{| - mode: $TEMPORARY$string<'datetime'>, - |}> = { + static DefaultProps: {|mode: $TEMPORARY$string<'datetime'>|} = { mode: 'datetime', }; diff --git a/Libraries/Components/Keyboard/Keyboard.js b/Libraries/Components/Keyboard/Keyboard.js index a024a447861..e113495f5cd 100644 --- a/Libraries/Components/Keyboard/Keyboard.js +++ b/Libraries/Components/Keyboard/Keyboard.js @@ -111,7 +111,7 @@ type KeyboardEventListener = (e: KeyboardEvent) => void; let Keyboard: | NativeEventEmitter - | $TEMPORARY$object<{| + | {| addListener: ( eventName: KeyboardEventName, callback: KeyboardEventListener, @@ -123,7 +123,7 @@ let Keyboard: callback: KeyboardEventListener, ) => $FlowFixMe, scheduleLayoutAnimation: (event: KeyboardEvent) => $FlowFixMe, - |}> = { + |} = { /** * The `addListener` function connects a JavaScript function to an identified native * keyboard notification event. diff --git a/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/Libraries/Components/Keyboard/KeyboardAvoidingView.js index ae0dd37fb08..e49e9aa7ea5 100644 --- a/Libraries/Components/Keyboard/KeyboardAvoidingView.js +++ b/Libraries/Components/Keyboard/KeyboardAvoidingView.js @@ -61,10 +61,7 @@ type State = {| * adjusting its height, position, or bottom padding. */ class KeyboardAvoidingView extends React.Component { - static defaultProps: $TEMPORARY$object<{| - enabled: boolean, - keyboardVerticalOffset: number, - |}> = { + static defaultProps: {|enabled: boolean, keyboardVerticalOffset: number|} = { enabled: true, keyboardVerticalOffset: 0, }; diff --git a/Libraries/Components/Picker/Picker.js b/Libraries/Components/Picker/Picker.js index cded08c74d8..7e9960a4460 100644 --- a/Libraries/Components/Picker/Picker.js +++ b/Libraries/Components/Picker/Picker.js @@ -130,9 +130,7 @@ class Picker extends React.Component { static Item: typeof PickerItem = PickerItem; - static defaultProps: $TEMPORARY$object<{| - mode: $TEMPORARY$string<'dialog'>, - |}> = { + static defaultProps: {|mode: $TEMPORARY$string<'dialog'>|} = { mode: MODE_DIALOG, }; diff --git a/Libraries/Components/StatusBar/StatusBar.js b/Libraries/Components/StatusBar/StatusBar.js index 4d50ce48801..1481b25d9a8 100644 --- a/Libraries/Components/StatusBar/StatusBar.js +++ b/Libraries/Components/StatusBar/StatusBar.js @@ -376,10 +376,10 @@ class StatusBar extends React.Component { return newEntry; } - static defaultProps: $TEMPORARY$object<{| + static defaultProps: {| animated: boolean, showHideTransition: $TEMPORARY$string<'fade'>, - |}> = { + |} = { animated: false, showHideTransition: 'fade', }; diff --git a/Libraries/Components/View/ReactNativeViewViewConfig.js b/Libraries/Components/View/ReactNativeViewViewConfig.js index 39a603a6eb7..a5fbea0a588 100644 --- a/Libraries/Components/View/ReactNativeViewViewConfig.js +++ b/Libraries/Components/View/ReactNativeViewViewConfig.js @@ -15,8 +15,8 @@ const ReactNativeViewConfig = { uiViewClassName: 'RCTView', baseModuleName: null, Manager: 'ViewManager', - Commands: ({}: $TEMPORARY$object<{||}>), - Constants: ({}: $TEMPORARY$object<{||}>), + Commands: ({}: {...}), + Constants: ({}: {...}), bubblingEventTypes: { ...ReactNativeViewViewConfigAndroid.bubblingEventTypes, topBlur: { diff --git a/Libraries/Components/View/ViewNativeComponent.js b/Libraries/Components/View/ViewNativeComponent.js index f954a2d6c2f..c735b5b864a 100644 --- a/Libraries/Components/View/ViewNativeComponent.js +++ b/Libraries/Components/View/ViewNativeComponent.js @@ -25,8 +25,8 @@ export type ViewNativeComponentType = Class< let NativeViewComponent; let viewConfig: - | $TEMPORARY$object<{||}> - | $TEMPORARY$object<{| + | {...} + | {| bubblingEventTypes?: $ReadOnly<{ [eventName: string]: $ReadOnly<{| phasedRegistrationNames: $ReadOnly<{| @@ -47,7 +47,7 @@ let viewConfig: process?: (arg1: any) => any, |}>, }, - |}>; + |}; // Only use the JS view config in DEV if (__DEV__) { diff --git a/Libraries/Core/Timers/JSTimers.js b/Libraries/Core/Timers/JSTimers.js index e877680f778..5bdd927cda3 100644 --- a/Libraries/Core/Timers/JSTimers.js +++ b/Libraries/Core/Timers/JSTimers.js @@ -497,7 +497,7 @@ function setSendIdleEvents(sendIdleEvents: boolean): void { NativeTiming.setSendIdleEvents(sendIdleEvents); } -let ExportedJSTimers: $TEMPORARY$object<{| +let ExportedJSTimers: {| callIdleCallbacks: (frameTime: number) => any | void, callImmediates: () => void, callTimers: (timersToCall: Array) => any | void, @@ -512,7 +512,7 @@ let ExportedJSTimers: $TEMPORARY$object<{| setImmediate: (func: any, ...args: any) => number, setInterval: (func: any, duration: number, ...args: any) => number, setTimeout: (func: any, duration: number, ...args: any) => number, -|}>; +|}; if (!NativeTiming) { console.warn("Timing native module is not available, can't set timers."); // $FlowFixMe: we can assume timers are generally available diff --git a/Libraries/Experimental/Incremental.js b/Libraries/Experimental/Incremental.js index 8ccb315d6a8..ba16f91c932 100644 --- a/Libraries/Experimental/Incremental.js +++ b/Libraries/Experimental/Incremental.js @@ -103,16 +103,16 @@ class Incremental extends React.Component { _mounted: boolean; _rendered: boolean; - static defaultProps: $TEMPORARY$object<{|name: string|}> = { + static defaultProps: {|name: string|} = { name: '', }; static contextTypes: | any - | $TEMPORARY$object<{| + | {| incrementalGroup: React$PropType$Primitive, incrementalGroupEnabled: React$PropType$Primitive, - |}> = { + |} = { incrementalGroup: PropTypes.object, incrementalGroupEnabled: PropTypes.bool, }; diff --git a/Libraries/Experimental/IncrementalPresenter.js b/Libraries/Experimental/IncrementalPresenter.js index 561da9bbd83..74e147e998b 100644 --- a/Libraries/Experimental/IncrementalPresenter.js +++ b/Libraries/Experimental/IncrementalPresenter.js @@ -46,10 +46,10 @@ class IncrementalPresenter extends React.Component { static contextTypes: | any - | $TEMPORARY$object<{| + | {| incrementalGroup: React$PropType$Primitive, incrementalGroupEnabled: React$PropType$Primitive, - |}> = { + |} = { incrementalGroup: PropTypes.object, incrementalGroupEnabled: PropTypes.bool, }; diff --git a/Libraries/Experimental/WindowedListView.js b/Libraries/Experimental/WindowedListView.js index 05c2fa038f0..84ff57dc65c 100644 --- a/Libraries/Experimental/WindowedListView.js +++ b/Libraries/Experimental/WindowedListView.js @@ -170,7 +170,7 @@ class WindowedListView extends React.Component { _scrollRef: ?ScrollView; _viewabilityHelper: ViewabilityHelper; - static defaultProps: $TEMPORARY$object<{| + static defaultProps: {| disableIncrementalRendering: boolean, initialNumToRender: number, maxNumToRender: number, @@ -178,7 +178,7 @@ class WindowedListView extends React.Component { recomputeRowsBatchingPeriod: number, renderScrollComponent: (props: any) => React.Node, viewablePercentThreshold: number, - |}> = { + |} = { initialNumToRender: 10, maxNumToRender: 30, numToRenderAhead: 10, diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index e21ed2ced51..bfcac0aa319 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -137,17 +137,12 @@ export type Props = $ReadOnly<{| |}>; class Modal extends React.Component { - static defaultProps: $TEMPORARY$object<{| - hardwareAccelerated: boolean, - visible: boolean, - |}> = { + static defaultProps: {|hardwareAccelerated: boolean, visible: boolean|} = { visible: true, hardwareAccelerated: false, }; - static contextTypes: - | any - | $TEMPORARY$object<{|rootTag: React$PropType$Primitive|}> = { + static contextTypes: any | {|rootTag: React$PropType$Primitive|} = { rootTag: PropTypes.number, }; @@ -162,11 +157,11 @@ class Modal extends React.Component { static childContextTypes: | any - | $TEMPORARY$object<{|virtualizedList: React$PropType$Primitive|}> = { + | {|virtualizedList: React$PropType$Primitive|} = { virtualizedList: PropTypes.object, }; - getChildContext(): $TEMPORARY$object<{|virtualizedList: null|}> { + getChildContext(): {|virtualizedList: null|} { // Reset the context so VirtualizedList doesn't get confused by nesting // in the React tree that doesn't reflect the native component hierarchy. return { diff --git a/Libraries/ReactNative/AppContainer.js b/Libraries/ReactNative/AppContainer.js index 39d3374a864..2766e76c8dd 100644 --- a/Libraries/ReactNative/AppContainer.js +++ b/Libraries/ReactNative/AppContainer.js @@ -44,7 +44,7 @@ class AppContainer extends React.Component { static childContextTypes: | any - | $TEMPORARY$object<{|rootTag: React$PropType$Primitive|}> = { + | {|rootTag: React$PropType$Primitive|} = { rootTag: PropTypes.number, }; diff --git a/Libraries/ReactNative/DummyUIManager.js b/Libraries/ReactNative/DummyUIManager.js index fb2a774b916..a6ae78a9624 100644 --- a/Libraries/ReactNative/DummyUIManager.js +++ b/Libraries/ReactNative/DummyUIManager.js @@ -16,7 +16,7 @@ module.exports = { ); return null; }, - getConstants: (): $TEMPORARY$object<{||}> => ({}), + getConstants: (): {...} => ({}), getConstantsForViewManager: (viewManagerName: string) => {}, getDefaultEventTypes: (): Array<$FlowFixMe> => [], playTouchSound: () => {}, diff --git a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js index c1e192abae6..cf695bb782d 100644 --- a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +++ b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js @@ -12,16 +12,16 @@ 'use strict'; +const invariant = require('invariant'); + import type { ReactNativeBaseComponentViewConfig, ViewConfigGetter, } from './ReactNativeTypes'; -const invariant = require('invariant'); - // Event configs -const customBubblingEventTypes: $TEMPORARY$object<{||}> = {}; -const customDirectEventTypes: $TEMPORARY$object<{||}> = {}; +const customBubblingEventTypes: {...} = {}; +const customDirectEventTypes: {...} = {}; exports.customBubblingEventTypes = customBubblingEventTypes; exports.customDirectEventTypes = customDirectEventTypes; diff --git a/Libraries/UTFSequence.js b/Libraries/UTFSequence.js index 4e6c030ef20..70d17a3ba40 100644 --- a/Libraries/UTFSequence.js +++ b/Libraries/UTFSequence.js @@ -19,7 +19,7 @@ const deepFreezeAndThrowOnMutationInDev = require('./Utilities/deepFreezeAndThro * - Source code should be limitted to ASCII. * - Less chance of typos. */ -const UTFSequence: $TEMPORARY$object<{| +const UTFSequence: {| BOM: string, BULLET: string, BULLET_SP: string, @@ -34,7 +34,7 @@ const UTFSequence: $TEMPORARY$object<{| PIZZA: string, TRIANGLE_LEFT: string, TRIANGLE_RIGHT: string, -|}> = deepFreezeAndThrowOnMutationInDev({ +|} = deepFreezeAndThrowOnMutationInDev({ BOM: '\ufeff', // byte order mark BULLET: '\u2022', // bullet: • BULLET_SP: '\u00A0\u2022\u00A0', //  •  diff --git a/Libraries/Utilities/verifyComponentAttributeEquivalence.js b/Libraries/Utilities/verifyComponentAttributeEquivalence.js index 98a725ab02e..37ff4ff198f 100644 --- a/Libraries/Utilities/verifyComponentAttributeEquivalence.js +++ b/Libraries/Utilities/verifyComponentAttributeEquivalence.js @@ -105,7 +105,7 @@ export function lefthandObjectDiff(leftObj: Object, rightObj: Object): Object { export function getConfigWithoutViewProps( viewConfig: ReactNativeBaseComponentViewConfig<>, propName: string, -): $TEMPORARY$object<{||}> { +): {...} { if (!viewConfig[propName]) { return {}; } diff --git a/Libraries/YellowBox/UI/YellowBoxPressable.js b/Libraries/YellowBox/UI/YellowBoxPressable.js index ed7b688a768..766ed2600dd 100644 --- a/Libraries/YellowBox/UI/YellowBoxPressable.js +++ b/Libraries/YellowBox/UI/YellowBoxPressable.js @@ -36,9 +36,9 @@ type State = {| |}; class YellowBoxPressable extends React.Component { - static defaultProps: $TEMPORARY$object<{| - backgroundColor: $TEMPORARY$object<{|default: string, pressed: string|}>, - |}> = { + static defaultProps: {| + backgroundColor: {|default: string, pressed: string|}, + |} = { backgroundColor: { default: YellowBoxStyle.getBackgroundColor(0.95), pressed: YellowBoxStyle.getHighlightColor(1), diff --git a/Libraries/vendor/emitter/EventHolder.js b/Libraries/vendor/emitter/EventHolder.js index 54728e75390..ab71363b01f 100644 --- a/Libraries/vendor/emitter/EventHolder.js +++ b/Libraries/vendor/emitter/EventHolder.js @@ -45,7 +45,7 @@ class EventHolder { holdEvent( eventType: string, ...args: any - ): $TEMPORARY$object<{|eventType: string, index: $FlowFixMeEmpty|}> { + ): {|eventType: string, index: $FlowFixMeEmpty|} { this._heldEvents[eventType] = this._heldEvents[eventType] || []; const eventsOfType = this._heldEvents[eventType]; const key = { diff --git a/RNTester/js/components/ListExampleShared.js b/RNTester/js/components/ListExampleShared.js index 69e3ecc1510..b124122d09b 100644 --- a/RNTester/js/components/ListExampleShared.js +++ b/RNTester/js/components/ListExampleShared.js @@ -219,7 +219,7 @@ function getItemLayout( data: any, index: number, horizontal?: boolean, -): $TEMPORARY$object<{|index: number, length: number, offset: number|}> { +): {|index: number, length: number, offset: number|} { const [length, separator, header] = horizontal ? [HORIZ_WIDTH, 0, HEADER.width] : [ITEM_HEIGHT, SEPARATOR_HEIGHT, HEADER.height]; diff --git a/RNTester/js/components/TextLegend.js b/RNTester/js/components/TextLegend.js index b53bed9dd7d..dd4a1be5261 100644 --- a/RNTester/js/components/TextLegend.js +++ b/RNTester/js/components/TextLegend.js @@ -15,12 +15,12 @@ const React = require('react'); const {Picker, Text, View} = require('react-native'); class TextLegend extends React.Component<*, *> { - state: $TEMPORARY$object<{| + state: {| alignment: $TEMPORARY$string<'left'>, fontSize: number, language: $TEMPORARY$string<'english'>, textMetrics: Array, - |}> = { + |} = { textMetrics: [], language: 'english', alignment: 'left', diff --git a/RNTester/js/examples/MultiColumn/MultiColumnExample.js b/RNTester/js/examples/MultiColumn/MultiColumnExample.js index 480090d1b1a..aa1ea81b136 100644 --- a/RNTester/js/examples/MultiColumn/MultiColumnExample.js +++ b/RNTester/js/examples/MultiColumn/MultiColumnExample.js @@ -35,14 +35,14 @@ class MultiColumnExample extends React.PureComponent< > { state: | any - | $TEMPORARY$object<{| + | {| data: Array, filterText: string, fixedHeight: boolean, logViewable: boolean, numColumns: number, virtualized: boolean, - |}> = { + |} = { data: genItemData(1000), filterText: '', fixedHeight: true, diff --git a/RNTester/js/examples/SectionList/SectionListExample.js b/RNTester/js/examples/SectionList/SectionListExample.js index 014fa48a0b1..3046602e30f 100644 --- a/RNTester/js/examples/SectionList/SectionListExample.js +++ b/RNTester/js/examples/SectionList/SectionListExample.js @@ -70,14 +70,14 @@ const CustomSeparatorComponent = ({highlighted, text}) => ( class SectionListExample extends React.PureComponent<{}, $FlowFixMeState> { state: | any - | $TEMPORARY$object<{| + | {| data: Array, debug: boolean, filterText: string, inverted: boolean, logViewable: boolean, virtualized: boolean, - |}> = { + |} = { data: genItemData(1000), debug: false, filterText: '', diff --git a/RNTester/js/examples/XHR/XHRExampleBinaryUpload.js b/RNTester/js/examples/XHR/XHRExampleBinaryUpload.js index 962265116b1..adf83002c50 100644 --- a/RNTester/js/examples/XHR/XHRExampleBinaryUpload.js +++ b/RNTester/js/examples/XHR/XHRExampleBinaryUpload.js @@ -72,9 +72,7 @@ class XHRExampleBinaryUpload extends React.Component<{}, $FlowFixMeState> { Linking.openURL(url); } - state: - | $FlowFixMe - | $TEMPORARY$object<{|type: $TEMPORARY$string<'Uint8Array'>|}> = { + state: $FlowFixMe | {|type: $TEMPORARY$string<'Uint8Array'>|} = { type: 'Uint8Array', }; diff --git a/RNTester/js/utils/RNTesterList.ios.js b/RNTester/js/utils/RNTesterList.ios.js index 4a9c7aa9442..33a698ddeba 100644 --- a/RNTester/js/utils/RNTesterList.ios.js +++ b/RNTester/js/utils/RNTesterList.ios.js @@ -337,7 +337,7 @@ const APIExamples: Array = [ }, ]; -const Modules: $TEMPORARY$object<{||}> = {}; +const Modules: {...} = {}; APIExamples.concat(ComponentExamples).forEach(Example => { Modules[Example.key] = Example.module;