diff --git a/package.json b/package.json index 1ce385668..2619c540c 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "dependencies": { "@babel/runtime": "^7.5.5", - "@esteemapp/esteem-render-helpers": "^1.3.3", + "@esteemapp/esteem-render-helpers": "^1.3.5", "@esteemapp/react-native-autocomplete-input": "^4.2.1", "@esteemapp/react-native-modal-popover": "^0.0.14", "@esteemapp/react-native-multi-slider": "^1.1.0", diff --git a/src/components/postElements/body/view/config.js b/src/components/postElements/body/view/config.js index 7131d7979..cccdd3a50 100644 --- a/src/components/postElements/body/view/config.js +++ b/src/components/postElements/body/view/config.js @@ -7,6 +7,7 @@ for (i = 0; i < images.length; i++) { } var resultStr = JSON.stringify(JSON.stringify(result)); // workaround var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')'; + images[i].setAttribute("onClick", message); } diff --git a/src/screens/bookmarks/container/bookmarksContainer.js b/src/screens/bookmarks/container/bookmarksContainer.js index 7761fea54..e9a90d66d 100644 --- a/src/screens/bookmarks/container/bookmarksContainer.js +++ b/src/screens/bookmarks/container/bookmarksContainer.js @@ -109,13 +109,14 @@ const BookmarksContainer = ({ currentAccount, intl, navigation }) => { } }; - const _sortData = data => - data.sort((a, b) => { - const dateA = new Date(a.created).getTime(); - const dateB = new Date(b.created).getTime(); + const _sortData = data => { + return data.sort((a, b) => { + const dateA = a.timestamp; + const dateB = b.timestamp; - return dateB > dateA ? 1 : -1; + return dateB - dateA; }); + }; return (