From 1419c7a7fde5b216cd3203bff791d9b1f17f22cd Mon Sep 17 00:00:00 2001 From: Eli White Date: Mon, 14 May 2018 00:09:03 -0700 Subject: [PATCH] Migrate ScrollView fake type to ReactNative.NativeComponent Reviewed By: yungsters Differential Revision: D7985122 fbshipit-source-id: b78fc6ad84485e8aa42657c2b21d70c9f3a271d6 --- Libraries/Components/ScrollView/InternalScrollViewType.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/Components/ScrollView/InternalScrollViewType.js b/Libraries/Components/ScrollView/InternalScrollViewType.js index a97ca9f436..a1d42bb46a 100644 --- a/Libraries/Components/ScrollView/InternalScrollViewType.js +++ b/Libraries/Components/ScrollView/InternalScrollViewType.js @@ -8,13 +8,13 @@ * @flow */ -const React = require('React'); +const ReactNative = require('ReactNative'); // This class is purely a facsimile of ScrollView so that we can // properly type it with Flow before migrating ScrollView off of // createReactClass. If there are things missing here that are in // ScrollView, that is unintentional. -class InternalScrollViewType extends React.Component { +class InternalScrollViewType extends ReactNative.NativeComponent { scrollTo( y?: number | {x?: number, y?: number, animated?: boolean}, x?: number, @@ -24,7 +24,6 @@ class InternalScrollViewType extends React.Component { flashScrollIndicators() {} scrollToEnd(options?: {animated?: boolean}) {} scrollWithoutAnimationTo(y: number = 0, x: number = 0) {} - setNativeProps(props: Object) {} getScrollResponder(): any {} getScrollableNode(): any {}