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

SafeAreaView rendering children under unsafe area

未關閉
#595 14 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
2.8k
分支
258
平均合併
3 天 1 小時
30 天內合併 PR
2

描述

### Description

SafeAreaView from doesn't respect safe areas on iOS when used alongside an animated view with {translateY: 0} in the same screen.
Using a basic view and padding it with insets from useSafeAreaInsets seems to work normally.

This was originally reported here: https://github.com/kirillzyusko/react-native-keyboard-controller/issues/809

### Steps to reproduce

1. Mount a screen that has both SafeAreaView and an animated view with translateY = 0
2. SafeAreaView child renders under "Unsafe" area.

### Snack or a link to a repository

https://snack.expo.dev/@rodsar/safeareaview-issue

### Safe Area Context version

5.2.0

### React Native version

0.76

### Platforms

iOS

### Architecture

None

### Build type

None

### Device

iOS simulator

### Device model

_No response_

### Acknowledgements

Yes

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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