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

[Android] SafeAreView is not working on Android with notch, tested on Pixel 7 emulator

Abierto
#456 27 comentarios 24 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
2.8k
Forks
258
Merge medio
3 d 1 h
PR fusionados (30 d)
2

Descripción

Hey,
I've noticed that the SafeAreaView is not working on the Pixel 7 emulator. Any ideas on how it might be fixed? :)

Here's a screenshot:

Screenshot 2023-11-15 at 18 42 22

Code:
```
import React from 'react'
import { SafeAreaProvider, SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context'
import { Text, View } from 'react-native'

const TestComponent = () => {
const insets = useSafeAreaInsets()

console.log('insets', insets) // LOG insets {"bottom": 0, "left": 0, "right": 0, "top": 0}

return (


Here Android notch Pixel 7 Here Android notch Pixel 7 Here Android notch Pixel 7


)
}

export const App = (): JSX.Element => {
return (



)
}
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.