[FIX] Share Extension hitting memory limit on iOS (#2788)

* [FIX] Disallow swipe to dismiss on share extension

* Limit query to 20 and clean up props

* Remove rn-extension-share branch pointer

* Test new branch

* Remove branch
This commit is contained in:
Diego Mello 2021-01-13 17:22:44 -03:00 committed by GitHub
parent 7f0abe1713
commit 32b1b36e48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 13 deletions

View File

@ -195,7 +195,7 @@ class ShareListView extends React.Component {
Q.where('archived', false), Q.where('archived', false),
Q.where('open', true), Q.where('open', true),
Q.experimentalSkip(0), Q.experimentalSkip(0),
Q.experimentalTake(50), Q.experimentalTake(20),
Q.experimentalSortBy('room_updated_at', Q.desc) Q.experimentalSortBy('room_updated_at', Q.desc)
]; ];
if (text) { if (text) {
@ -451,11 +451,9 @@ class ShareListView extends React.Component {
ListFooterComponent={!searching && this.renderBorderBottom} ListFooterComponent={!searching && this.renderBorderBottom}
ListHeaderComponentStyle={!searching ? { ...styles.borderBottom, borderColor: themes[theme].separatorColor } : {}} ListHeaderComponentStyle={!searching ? { ...styles.borderBottom, borderColor: themes[theme].separatorColor } : {}}
ListEmptyComponent={searching && searchText ? this.renderEmptyComponent : null} ListEmptyComponent={searching && searchText ? this.renderEmptyComponent : null}
enableEmptySections
removeClippedSubviews removeClippedSubviews
keyboardShouldPersistTaps='always' keyboardShouldPersistTaps='always'
initialNumToRender={12} initialNumToRender={12}
windowSize={20}
/> />
); );
} }

View File

@ -461,7 +461,7 @@ PODS:
- React - React
- ReactNativeUiLib (3.0.4): - ReactNativeUiLib (3.0.4):
- React - React
- rn-extensions-share (2.4.0): - rn-extensions-share (2.4.1):
- React - React
- rn-fetch-blob (0.12.0): - rn-fetch-blob (0.12.0):
- React-Core - React-Core
@ -964,7 +964,7 @@ SPEC CHECKSUMS:
ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b
ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab
ReactNativeUiLib: cde7263a7d308b60161cd286f95c9433e79f2f7d ReactNativeUiLib: cde7263a7d308b60161cd286f95c9433e79f2f7d
rn-extensions-share: 8db79372089567cbc5aefe8444869bbc808578d3 rn-extensions-share: 5fd84a80e6594706f0dfa1884f2d6d591b382cf5
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
RNBootSplash: b3836aa90c5bec690c6cd3c9ab355fcf98d0fe1d RNBootSplash: b3836aa90c5bec690c6cd3c9ab355fcf98d0fe1d
RNCAsyncStorage: d059c3ee71738c39834a627476322a5a8cd5bf36 RNCAsyncStorage: d059c3ee71738c39834a627476322a5a8cd5bf36

View File

@ -1,6 +1,6 @@
{ {
"name": "rn-extensions-share", "name": "rn-extensions-share",
"version": "2.4.0", "version": "2.4.1",
"summary": "Share-Extension using react-native for both ios and android", "summary": "Share-Extension using react-native for both ios and android",
"license": "MIT", "license": "MIT",
"authors": { "authors": {

View File

@ -461,7 +461,7 @@ PODS:
- React - React
- ReactNativeUiLib (3.0.4): - ReactNativeUiLib (3.0.4):
- React - React
- rn-extensions-share (2.4.0): - rn-extensions-share (2.4.1):
- React - React
- rn-fetch-blob (0.12.0): - rn-fetch-blob (0.12.0):
- React-Core - React-Core
@ -964,7 +964,7 @@ SPEC CHECKSUMS:
ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b
ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab
ReactNativeUiLib: cde7263a7d308b60161cd286f95c9433e79f2f7d ReactNativeUiLib: cde7263a7d308b60161cd286f95c9433e79f2f7d
rn-extensions-share: 8db79372089567cbc5aefe8444869bbc808578d3 rn-extensions-share: 5fd84a80e6594706f0dfa1884f2d6d591b382cf5
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
RNBootSplash: b3836aa90c5bec690c6cd3c9ab355fcf98d0fe1d RNBootSplash: b3836aa90c5bec690c6cd3c9ab355fcf98d0fe1d
RNCAsyncStorage: d059c3ee71738c39834a627476322a5a8cd5bf36 RNCAsyncStorage: d059c3ee71738c39834a627476322a5a8cd5bf36

View File

@ -119,7 +119,7 @@
"redux-saga": "1.1.3", "redux-saga": "1.1.3",
"remove-markdown": "^0.3.0", "remove-markdown": "^0.3.0",
"reselect": "4.0.0", "reselect": "4.0.0",
"rn-extensions-share": "^2.4.0", "rn-extensions-share": "RocketChat/rn-extensions-share",
"rn-fetch-blob": "0.12.0", "rn-fetch-blob": "0.12.0",
"rn-root-view": "^1.0.3", "rn-root-view": "^1.0.3",
"semver": "7.3.2", "semver": "7.3.2",

View File

@ -13829,10 +13829,9 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
hash-base "^3.0.0" hash-base "^3.0.0"
inherits "^2.0.1" inherits "^2.0.1"
rn-extensions-share@^2.4.0: rn-extensions-share@RocketChat/rn-extensions-share:
version "2.4.0" version "2.4.1"
resolved "https://registry.yarnpkg.com/rn-extensions-share/-/rn-extensions-share-2.4.0.tgz#a614f6bf6cdd3948fbd7e0f2519592d4bb5f551f" resolved "https://codeload.github.com/RocketChat/rn-extensions-share/tar.gz/4d7c0e4c2f300e4fb116af7b7cc0dbbc8169150c"
integrity sha512-zX3HcOhib805fVHR7TMYfFXrVBJWYgcrLYNB89RxbKqmSjaqUyWlHYuF61SKOs/dXXeic91e/L8d1YJa6TdzGA==
rn-fetch-blob@0.12.0: rn-fetch-blob@0.12.0:
version "0.12.0" version "0.12.0"