diff --git a/src/screens/bookmarks/container/bookmarksContainer.js b/src/screens/bookmarks/container/bookmarksContainer.js
index f3236ab39..bef8e4647 100644
--- a/src/screens/bookmarks/container/bookmarksContainer.js
+++ b/src/screens/bookmarks/container/bookmarksContainer.js
@@ -44,12 +44,10 @@ class DraftsContainer extends Component {
getFavorites(currentAccount.name)
.then((data) => {
- this.setState({ favorites: this._sortData(data) });
+ this.setState({ favorites: this._sortData(data), isLoading: false });
})
.catch(() => {
Alert.alert(intl.formatMessage({ id: 'favorites.load_error' }));
- })
- .finally(() => {
this.setState({ isLoading: false });
});
};
diff --git a/src/screens/bookmarks/screen/bookmarksScreen.js b/src/screens/bookmarks/screen/bookmarksScreen.js
index 0077371fe..cdd4a26a4 100644
--- a/src/screens/bookmarks/screen/bookmarksScreen.js
+++ b/src/screens/bookmarks/screen/bookmarksScreen.js
@@ -32,16 +32,20 @@ class BookmarksScreen extends Component {
// Component Functions
- _renderItem = (item, index) => (
-
- );
+ _renderItem = (item, index) => {
+ const { handleOnPress } = this.props;
+ return (
+
+ );
+ };
_getTabItem = (data, type) => {
const { isLoading, intl } = this.props;
@@ -78,7 +82,9 @@ class BookmarksScreen extends Component {
};
render() {
- const { favorites, bookmarks, intl, handleRemoveFavorite } = this.props;
+ const {
+ favorites, bookmarks, intl, handleRemoveFavorite,
+ } = this.props;
return (