Migrate ScrollView fake type to ReactNative.NativeComponent
Reviewed By: yungsters Differential Revision: D7985122 fbshipit-source-id: b78fc6ad84485e8aa42657c2b21d70c9f3a271d6
This commit is contained in:
parent
ffda017850
commit
1419c7a7fd
|
@ -8,13 +8,13 @@
|
||||||
* @flow
|
* @flow
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const React = require('React');
|
const ReactNative = require('ReactNative');
|
||||||
|
|
||||||
// This class is purely a facsimile of ScrollView so that we can
|
// This class is purely a facsimile of ScrollView so that we can
|
||||||
// properly type it with Flow before migrating ScrollView off of
|
// properly type it with Flow before migrating ScrollView off of
|
||||||
// createReactClass. If there are things missing here that are in
|
// createReactClass. If there are things missing here that are in
|
||||||
// ScrollView, that is unintentional.
|
// ScrollView, that is unintentional.
|
||||||
class InternalScrollViewType<Props> extends React.Component<Props> {
|
class InternalScrollViewType<Props> extends ReactNative.NativeComponent<Props> {
|
||||||
scrollTo(
|
scrollTo(
|
||||||
y?: number | {x?: number, y?: number, animated?: boolean},
|
y?: number | {x?: number, y?: number, animated?: boolean},
|
||||||
x?: number,
|
x?: number,
|
||||||
|
@ -24,7 +24,6 @@ class InternalScrollViewType<Props> extends React.Component<Props> {
|
||||||
flashScrollIndicators() {}
|
flashScrollIndicators() {}
|
||||||
scrollToEnd(options?: {animated?: boolean}) {}
|
scrollToEnd(options?: {animated?: boolean}) {}
|
||||||
scrollWithoutAnimationTo(y: number = 0, x: number = 0) {}
|
scrollWithoutAnimationTo(y: number = 0, x: number = 0) {}
|
||||||
setNativeProps(props: Object) {}
|
|
||||||
|
|
||||||
getScrollResponder(): any {}
|
getScrollResponder(): any {}
|
||||||
getScrollableNode(): any {}
|
getScrollableNode(): any {}
|
||||||
|
|
Loading…
Reference in New Issue