invalidate

open fun invalidate()

Permanently destroys the ReactInstanceManager, including the CatalystInstance (if any). The application MUST NOT call any further methods on an invalidated ReactInstanceManager.

Applications where the ReactInstanceManager may be destroyed before the end of the process SHOULD call invalidate() before releasing the reference to the ReactInstanceManager, to ensure resources are freed in a timely manner.

NOTE: This method is designed for complex integrations. Integrators MAY instead hold a long-lived reference to a single ReactInstanceManager for the lifetime of the Application, without ever calling invalidate(). This is explicitly allowed.