Upgrade to Flow v0.68.0

Reviewed By: gabelevi

Differential Revision: D7310349

fbshipit-source-id: 70d29815dd7912704aec8a015c970be3fafeeba3
This commit is contained in:
Sam Goldman
2018-03-19 18:24:11 -07:00
committed by Facebook Github Bot
parent 5347ecfd29
commit 0d924dd629
16 changed files with 72 additions and 11 deletions

View File

@@ -142,6 +142,9 @@ class SwipeableListView extends React.Component<Props, State> {
* (from high 20s to almost consistently 60 fps)
*/
_setListViewScrollable(value: boolean): void {
/* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.68 was deployed. To see the error delete this
* comment and run Flow. */
if (this._listViewRef && typeof this._listViewRef.setNativeProps === 'function') {
this._listViewRef.setNativeProps({
scrollEnabled: value,
@@ -151,6 +154,9 @@ class SwipeableListView extends React.Component<Props, State> {
// Passing through ListView's getScrollResponder() function
getScrollResponder(): ?Object {
/* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.68 was deployed. To see the error delete this
* comment and run Flow. */
if (this._listViewRef && typeof this._listViewRef.getScrollResponder === 'function') {
return this._listViewRef.getScrollResponder();
}