Skip to content

Commit

Permalink
Merge pull request #2750 from ecency/nt/pull-refresh-fix
Browse files Browse the repository at this point in the history
using RefreshControl and List/Scroll in pair from same package
  • Loading branch information
feruzm authored Sep 11, 2023
2 parents a457fef + 3f0515b commit 4802217
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/notification/view/notificationView.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable react/jsx-wrap-multilines */
import React, { PureComponent } from 'react';
import { connect } from 'react-redux';
import { View, ActivityIndicator, RefreshControl, Text } from 'react-native';
import { View, ActivityIndicator, Text } from 'react-native';
import { injectIntl } from 'react-intl';
// Constants

// Components
import { FlatList } from 'react-native-gesture-handler';
import { RefreshControl, FlatList } from 'react-native-gesture-handler';
import EStyleSheet from 'react-native-extended-stylesheet';
import { ContainerHeader } from '../../containerHeader';
import { FilterBar } from '../../filterBar';
Expand Down
4 changes: 2 additions & 2 deletions src/components/postComments/container/postComments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import React, {
useEffect,
Fragment,
} from 'react';
import { ActivityIndicator, Platform, RefreshControl, Text } from 'react-native';
import { ActivityIndicator, Platform, Text } from 'react-native';
import { useIntl } from 'react-intl';
import { useNavigation } from '@react-navigation/native';
import { FlatList } from 'react-native-gesture-handler';
import { FlatList, RefreshControl } from 'react-native-gesture-handler';

// Components
import { postBodySummary } from '@ecency/render-helper';
Expand Down
1 change: 0 additions & 1 deletion src/screens/assetDetails/children/activitiesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useAppSelector } from '../../../hooks';
import { CoinActivity } from '../../../redux/reducers/walletReducer';
import styles from './children.styles';
import { limitOrderCancel } from '../../../providers/hive-trade/hiveTrade';
import { walletQueries } from '../../../providers/queries';
import { useQueryClient } from '@tanstack/react-query';
import QUERIES from '../../../providers/queries/queryKeys';

Expand Down
4 changes: 2 additions & 2 deletions src/screens/assetDetails/children/delegationsModal.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
import { useIntl } from 'react-intl';
import { FlatList } from 'react-native-gesture-handler';
import { FlatList, RefreshControl } from 'react-native-gesture-handler';
import { useNavigation } from '@react-navigation/native';
import { StackNavigationProp } from '@react-navigation/stack';
import { RefreshControl } from 'react-native';

import unionBy from 'lodash/unionBy';
import AccountListContainer from '../../../containers/accountListContainer';
import ROUTES from '../../../constants/routeNames';
Expand Down
4 changes: 2 additions & 2 deletions src/screens/wallet/screen/walletScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable react/jsx-wrap-multilines */
import React, { Fragment, useState, useEffect, useRef } from 'react';
import { SafeAreaView, View, RefreshControl, Text, AppState, AppStateStatus } from 'react-native';
import { SafeAreaView, View, Text, AppState, AppStateStatus } from 'react-native';
import { isArray } from 'lodash';

// Containers
import { FlatList, gestureHandlerRootHOC } from 'react-native-gesture-handler';
import {RefreshControl, FlatList, gestureHandlerRootHOC } from 'react-native-gesture-handler';
import { useIntl } from 'react-intl';
import moment from 'moment';
import { LoggedInContainer } from '../../../containers';
Expand Down

0 comments on commit 4802217

Please sign in to comment.