using RefreshControl and List/Scroll in pair from same package

This commit is contained in:
Nouman Tahir 2023-09-11 16:25:39 +05:00
parent 0e3d6511b8
commit 3f0515b934
5 changed files with 8 additions and 9 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';