appandflow / appandflow/react-native-safe-area-context

SafeAreaView can't be transparent

未關閉
#197 5 則留言 19 個 reaction 已指派 0 人 在 GitHub 檢視
bug good first issue help wanted
主要語言
TypeScript
星號
2.8k
分支
258
平均合併
3 天 1 小時
30 天內合併 PR
2

描述

Hello,

I began to switch from react-navigation SafeAreaView to your lib, and I'm experiencing a weird behavior.
With the older SafeAreaView we could obtain a 'transparent' view to pad the notch but your library seems to force a colored view, even if provide `backgroundColor: 'transparent'` to the SafeAreaView component, the background is still white.
And this view hide the content when we scroll for example.

With the react-navigation SafeAreaView:

Capture d’écran 2021-06-07 à 15 39 32

With your SafeAreaView component:

Capture d’écran 2021-06-07 à 15 28 48

I use this implementation

``` javascript

{this.renderBody()}
{this.renderTabBar()}

```

I searched a lot and I didn't found any reason and I'm asking myself if I'm not doing something wrong because any
one reported this bug. Could you please help me to use your library for my case ?

I tested it on Iphone X & 12

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。