@@ -236,8 +236,8 @@ public void startReactApplication(
236
236
/**
237
237
* Unmount the react application at this root view, reclaiming any JS memory associated with that
238
238
* application. If {@link #startReactApplication} is called, this method must be called before the
239
- * ReactRootView is garbage collected (typically in your Activity's onDestroy, or in your Fragment's
240
- * onDestroyView).
239
+ * ReactRootView is garbage collected (typically in your Activity's onDestroy, or in your
240
+ * Fragment's onDestroyView).
241
241
*/
242
242
public void unmountReactApplication () {
243
243
if (mReactInstanceManager != null && mIsAttachedToInstance ) {
@@ -339,10 +339,11 @@ protected void finalize() throws Throwable {
339
339
super .finalize ();
340
340
Assertions .assertCondition (
341
341
!mIsAttachedToInstance ,
342
- "The application this ReactRootView was rendering was not unmounted before the ReactRootView " +
343
- "was garbage collected. This usually means that your application is leaking large amounts of " +
344
- "memory. To solve this, make sure to call ReactRootView#unmountReactApplication in the onDestroy() " +
345
- "of your hosting Activity or in the onDestroyView() of your hosting Fragment." );
342
+ "The application this ReactRootView was rendering was not unmounted before the " +
343
+ "ReactRootView was garbage collected. This usually means that your application is " +
344
+ "leaking large amounts of memory. To solve this, make sure to call " +
345
+ "ReactRootView#unmountReactApplication in the onDestroy() of your hosting Activity or in " +
346
+ "the onDestroyView() of your hosting Fragment." );
346
347
}
347
348
348
349
public int getRootViewTag () {
0 commit comments