-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed By: yungsters Differential Revision: D7981073 fbshipit-source-id: 38c100f37e46683da1e34b335d476e706baae238
- Loading branch information
1 parent
188b118
commit b127662
Showing
4 changed files
with
165 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @flow | ||
*/ | ||
|
||
const React = require('React'); | ||
|
||
// 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<Props> extends React.Component<Props> { | ||
scrollTo( | ||
y?: number | {x?: number, y?: number, animated?: boolean}, | ||
x?: number, | ||
animated?: boolean, | ||
) {} | ||
|
||
flashScrollIndicators() {} | ||
scrollToEnd(options?: {animated?: boolean}) {} | ||
scrollWithoutAnimationTo(y: number = 0, x: number = 0) {} | ||
setNativeProps(props: Object) {} | ||
|
||
getScrollResponder(): any {} | ||
getScrollableNode(): any {} | ||
getInnerViewNode(): any {} | ||
|
||
scrollResponderScrollNativeHandleToKeyboard( | ||
nodeHandle: any, | ||
additionalOffset?: number, | ||
preventNegativeScrollOffset?: boolean, | ||
) {} | ||
|
||
scrollResponderScrollTo( | ||
x?: number | {x?: number, y?: number, animated?: boolean}, | ||
y?: number, | ||
animated?: boolean, | ||
) {} | ||
} | ||
|
||
module.exports = InternalScrollViewType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters