Skip to content

Commit

Permalink
Use blur only on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater committed Jan 3, 2022
1 parent 377bc24 commit b04e782
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@react-native-community/async-storage": "^1.11.0",
"@react-native-community/audio-toolkit": "git+https://github.com/tbenr/react-native-audio-toolkit.git#v2.0.3-status-v6",
"@react-native-community/blur": "muhammedyasirmt/react-native-blur#16a0322487f310cdca4b1e76edf38200fae84e4f",
"@react-native-community/blur": "^3.6.0",
"@react-native-community/cameraroll": "git+https://github.com/status-im/react-native-cameraroll.git#v4.0.4-status.0",
"@react-native-community/clipboard": "^1.2.2",
"@react-native-community/hooks": "^2.5.1",
Expand Down
5 changes: 5 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ module.exports = {
ios: null,
},
},
'@react-native-community/blur': {
platforms: {
android: null,
},
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
[status-im.ui.screens.wallet-connect.session-proposal.styles :as styles]
[status-im.ui.components.list.views :as list]
[reagent.core :as reagent]
[clojure.string :as string]))
[clojure.string :as string]
[quo.platform :as platform]))

(def chevron-icon-container-width 24)

Expand Down Expand Up @@ -114,8 +115,10 @@
(re-frame/dispatch [:hide-wallet-connect-success-sheet]))}
(i18n/label :t/close)]]]]]
(when managed-session
[react/blur-view styles/blur-view {:blurAmount 2
:blurType :light}])])))
(if platform/ios?
[react/blur-view styles/blur-view {:blurAmount 2
:blurType :light}]
[react/view styles/blur-view]))])))

(defview app-management-sheet-view [{:keys [topic]}]
(letsubs [sessions [:wallet-connect/sessions]
Expand Down
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1251,9 +1251,10 @@
eventemitter3 "^1.2.0"
lodash "^4.17.15"

"@react-native-community/blur@muhammedyasirmt/react-native-blur#16a0322487f310cdca4b1e76edf38200fae84e4f":
version "3.6.1"
resolved "https://codeload.github.com/muhammedyasirmt/react-native-blur/tar.gz/16a0322487f310cdca4b1e76edf38200fae84e4f"
"@react-native-community/blur@^3.6.0":
version "3.6.0"
resolved "https://registry.yarnpkg.com/@react-native-community/blur/-/blur-3.6.0.tgz#31c9e0f2770519c9b5c4f99418f192246f0d4db8"
integrity sha512-GtDBhpX2pQcjl4VopOC8FktrVufrEfYRwVeMQ2WWckqKIv2BdwvlvWvj88L1WmEdBr9UNcm3rtgz+d+YXkmirA==
dependencies:
prop-types "^15.5.10"

Expand Down

0 comments on commit b04e782

Please sign in to comment.