diff --git a/src/components/filterBar/view/filterBarView.js b/src/components/filterBar/view/filterBarView.js
index 9fea8edf1..1b1c7ddd9 100644
--- a/src/components/filterBar/view/filterBarView.js
+++ b/src/components/filterBar/view/filterBarView.js
@@ -7,7 +7,6 @@ import { DropdownButton } from '../../dropdownButton';
// Components
import { LineBreak } from '../../basicUIElements';
-import { PulseAnimation } from '../../animations';
// Styles
import styles from './filterBarStyles';
@@ -28,7 +27,6 @@ const FilterBarView = ({
rightIconName,
rightIconType,
selectedOptionIndex,
- rightIconLoading,
}) => (
{!isHide && (
@@ -41,7 +39,7 @@ const FilterBarView = ({
onSelect={onDropdownSelect}
selectedOptionIndex={selectedOptionIndex}
/>
- {rightIconName && !rightIconLoading && (
+ {rightIconName && (
onRightIconPress && onRightIconPress()}
style={styles.rightIconWrapper}
@@ -54,18 +52,6 @@ const FilterBarView = ({
/>
)}
- {rightIconName && rightIconLoading && (
-
-
-
- )}
)}
diff --git a/src/components/notification/view/notificationView.js b/src/components/notification/view/notificationView.js
index 8e62fd983..5347e3fcd 100644
--- a/src/components/notification/view/notificationView.js
+++ b/src/components/notification/view/notificationView.js
@@ -1,6 +1,6 @@
import React, { PureComponent, Fragment } from 'react';
import {
- View, ScrollView, FlatList, ActivityIndicator,
+ View, ScrollView, FlatList, ActivityIndicator, RefreshControl,
} from 'react-native';
import { injectIntl } from 'react-intl';
@@ -142,20 +142,26 @@ class NotificationView extends PureComponent {
return 4;
};
+ _getActivityIndicator = () => (
+
+
+
+ );
+
render() {
const {
- readAllNotification, getActivities, loading, readAllNotificationLoading,
+ readAllNotification,
+ getActivities,
+ loading,
+ readAllNotificationLoading,
+ isDarkTheme,
} = this.props;
const { filters, selectedFilter } = this.state;
const _notifications = this._getNotificationsArrays();
if (_notifications.length === 0) {
- return (
-
-
-
- );
+ return this._getActivityIndicator();
}
return (
@@ -165,9 +171,9 @@ class NotificationView extends PureComponent {
options={filters.map(item => item.value)}
defaultText="ALL ACTIVITIES"
onDropdownSelect={this._handleOnDropdownSelect}
- rightIconName="ios-checkmark"
+ rightIconName="check"
+ rightIconType="MaterialIcons"
onRightIconPress={readAllNotification}
- rightIconLoading={readAllNotificationLoading}
/>
= e.nativeEvent.contentSize.height - paddingToBottom
- && !loading
+ e.nativeEvent.contentOffset.y >= e.nativeEvent.contentSize.height - paddingToBottom
+ && !loading
) {
getActivities(selectedFilter, true);
}
@@ -185,6 +190,17 @@ class NotificationView extends PureComponent {
>
null}
+ refreshControl={(
+
+)}
renderItem={({ item, index }) => (
({
- username: state.account.currentAccount.name,
isLoggedIn: state.application.isLoggedIn,
+ isDarkTheme: state.application.isDarkTheme,
+
+ username: state.account.currentAccount.name,
activeBottomTab: state.ui.activeBottomTab,
});