fix: top bar ios (#16234)

* fix: top bar overlapped by composer
This commit is contained in:
Omar Basem 2023-06-09 18:47:52 +04:00 committed by GitHub
parent ab44dce27b
commit 9c1d73ffcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
[react-native.core :as rn] [react-native.core :as rn]
[react-native.gesture :as gesture] [react-native.gesture :as gesture]
[react-native.hooks :as hooks] [react-native.hooks :as hooks]
[react-native.platform :as platform]
[react-native.reanimated :as reanimated] [react-native.reanimated :as reanimated]
[reagent.core :as reagent] [reagent.core :as reagent]
[utils.i18n :as i18n] [utils.i18n :as i18n]
@ -131,7 +132,7 @@
:background-y background-y} :background-y background-y}
props (utils/init-props) props (utils/init-props)
state (utils/init-state)] state (utils/init-state)]
[rn/view [rn/view (when platform/ios? {:style {:z-index 1}})
[reanimated/view {:style (style/background opacity background-y window-height)}] [reanimated/view {:style (style/background opacity background-y window-height)}]
[sub-view/blur-view blur-height (:focused? state)] [sub-view/blur-view blur-height (:focused? state)]
[:f> sheet-component extra-params props state]])) [:f> sheet-component extra-params props state]]))