react / react/react-native

Redesign Native RedBox

Aperta
#29,158 12 commenti 8 reazioni 1 assegnatario Vedi su GitHub

@TMaszko ci sta già lavorando.

Dal 13/3/2022.

Never gets stale Type: Discussion Type: Enhancement
Lingua principale
C++
Stelle
127k
Fork
25.3k
Merge medio
1g 23h
PR unite (30g)
4

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.