Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/refreshableScrollView.android.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react'
import React, { Component } from 'react'
import {
ActivityIndicator,
Animated,
AsyncStorage,
Dimensions,
Easing,
ScrollView,
Expand All @@ -11,6 +10,7 @@ import {
View
} from 'react-native'
import dateFormat from './util'
import AsyncStorage from '@react-native-community/async-storage'

const { width, height } = Dimensions.get('window')
const DATE_KEY = 'ultimateRefreshDate'
Expand All @@ -25,7 +25,7 @@ const PaginationStatus = {
allLoaded: 2
}

export default class RefreshableScrollView extends ScrollView {
export default class RefreshableScrollView extends Component {
static defaultProps = {
horizontal: false,
scrollEnabled: true,
Expand Down
7 changes: 4 additions & 3 deletions src/refreshableScrollView.ios.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import { ActivityIndicator, Animated, AsyncStorage, Easing, ScrollView, StyleSheet, Text, View } from 'react-native'
import React, { Component } from 'react'
import { ActivityIndicator, Animated, Easing, ScrollView, StyleSheet, Text, View } from 'react-native'
import dateFormat from './util'
import AsyncStorage from '@react-native-community/async-storage'

const DATE_KEY = 'ultimateRefreshDate'
const RefreshStatus = {
Expand All @@ -14,7 +15,7 @@ const PaginationStatus = {
allLoaded: 2
}

export default class RefreshableScrollView extends ScrollView {
export default class RefreshableScrollView extends Component {
static defaultProps = {
horizontal: false,
scrollEnabled: true,
Expand Down