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

No ViewManager found for class RNCSafeAreaProvider

オープン
#660 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
2.8k
フォーク
258
平均マージ
3日 1時間
マージ済み PR(30日)
2

説明

### Description

![Image](https://github.com/user-attachments/assets/c601eb8c-6480-4c3f-933d-f59de02d44a4)

```
`No ViewManager found for class RNCSafeAreaProvider
get (ViewManagerRegistry.java:88)
createShadowNode`

```
Steps to reproduce

Create new React Native project (react-native init MyApp --version 0.80.1)

Add/remove some packages (navigation, safe area context, etc.)

Run npx react-native run-android

App crashes with above error

Expected behavior
App should run without throwing RNCSafeAreaProvider error.

Actual behavior
App crashes immediately with red screen error (attached screenshot).

Screenshot

Environment

React Native: 0.80.1

React: 19.1.0

Android Device/Emulator: [fill device info]

Node: [fill version]

npm/yarn: [fill version]

OS: [Windows/Linux/Mac]

Additional context
Looks like react-native-safe-area-context is either missing or not linked properly. Even after removing extra packages, app still crashes.

### Steps to reproduce

npx @react-native-community/cli@latest init matrix --version 0.80.1

### Snack or a link to a repository

https://github.com/react-native-community/cli

### Safe Area Context version

5.2.0

### React Native version

0.80.1

### Platforms

Android

### Architecture

None

### Build type

None

### Device

Android emulator

### Device model

_No response_

### Acknowledgements

Yes

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。