Skip to content

[Reliability] Making Android robust during development and production #3779

@ide

Description

@ide

There are a couple of things that are fragile about the RN Android environment right now. There has been some work put into RN iOS to be more forgiving about errors and bad inputs while still telling developers about the problems. A few things I've noticed that RN iOS does well that Android currently doesn't do:

  • When there is a redbox, the app continues to function. On Android, the Java React instance is destroyed.
  • You can provide custom handlers for soft and fatal JS exceptions. So if you wanted to ignore errors you could, or you could reconstruct the native React instance and do a soft reboot of the app.
  • When arguments to native methods are of the wrong type, iOS doesn't invoke the method and skips over it: e9c7ebf
  • On Android there's a great opportunity for reliability by catching all Java exceptions instead of crashing

cc @mkonicek

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions