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

No ViewManager found for class RNCSafeAreaProvider

Đang mở
#660 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
2.8k
Fork
258
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
2

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.