xplat/js/react-native-github

Reviewed By: panagosg7

Differential Revision: D16657770

fbshipit-source-id: 4e260842c838a35317515044c54ccf55a083da33
This commit is contained in:
Logan Daniels
2019-08-09 10:06:53 -07:00
committed by Facebook Github Bot
parent 9127fb51fc
commit 91f139b941
251 changed files with 1486 additions and 980 deletions
@@ -10,7 +10,9 @@
'use strict';
const BatchedBridge = require('react-native/Libraries/BatchedBridge/BatchedBridge');
const React = require('react');
const {
NativeModules,
ScrollView,
@@ -19,7 +21,6 @@ const {
TouchableWithoutFeedback,
View,
} = require('react-native');
const BatchedBridge = require('react-native/Libraries/BatchedBridge/BatchedBridge');
const {ScrollListener} = NativeModules;
@@ -94,8 +95,8 @@ class ScrollViewTestApp extends React.Component<Props, State> {
/* $FlowFixMe(>=0.87.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.87 was deployed. To see the error, delete this comment
* and run Flow. */
scrollView = React.createRef();
state = getInitialState();
scrollView: {|current: any | null|} = React.createRef();
state: State = getInitialState();
scrollTo(destX: number, destY: number) {
const scrollView = this.scrollView.current;
@@ -106,7 +107,7 @@ class ScrollViewTestApp extends React.Component<Props, State> {
scrollView.scrollTo(destY, destX);
}
render() {
render(): React.Node {
scrollViewApp = this;
const children = this.state.data.map((item, index) => (
<Item
@@ -131,8 +132,8 @@ class HorizontalScrollViewTestApp extends React.Component<Props, State> {
/* $FlowFixMe(>=0.87.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.87 was deployed. To see the error, delete this comment
* and run Flow. */
scrollView = React.createRef();
state = getInitialState();
scrollView: {|current: any | null|} = React.createRef();
state: State = getInitialState();
scrollTo(destX: number, destY: number) {
const scrollView = this.scrollView.current;
@@ -143,7 +144,7 @@ class HorizontalScrollViewTestApp extends React.Component<Props, State> {
scrollView.scrollTo(destY, destX);
}
render() {
render(): React.Node {
scrollViewApp = this;
const children = this.state.data.map((item, index) => (
<Item