react / react/react-native

Redesign Native RedBox

Đang mở
#29,158 12 bình luận 8 reaction 1 người được giao Xem trên GitHub

@TMaszko đang làm issue này rồi.

Từ ngày 13/3/2022.

Never gets stale Type: Discussion Type: Enhancement
Ngôn ngữ chính
C++
Star
127k
Fork
25.3k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
4

Mô tả

Overview

LogBox handles most errors users see but we still display native RedBoxes in cases where:

  • JavaScript has not loaded (e.g. Metro is unavailable)
  • JavaScript is unavailable (e.g. a syntax error in the bundle)
  • LogBox fails to render (e.g. an error in LogBox JavaScript)
  • Native log errors (e.g. RCTLogFatal)

This issue is to improve the fallback RedBox in these cases for a better experience.

Tasks

  • Update design to be in line with LogBox (see below)
  • Cleanup code by removing the symbolication logic (as this is handled by LogBox)
  • Remove stack trace since for all errors that this can occur the stack trace is not relevant

Designs

JavaScript has not loaded (Metro is unavailable)

image

JavaScript is not available (syntax error)

image

LogBox fails to render

image

Native log errors

image

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đá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.