I'm new to React Native. In my project, I'm using this package for selecting Document from storage. When I choosing a document for the first time its working fine, but when I try again to choosing a document, the application is crashed. I'm facing this error.
java.lang.RuntimeException:
at android.app.ActivityThread.callActivityOnStop (ActivityThread.java:4862)
at android.app.ActivityThread.handleSleeping (ActivityThread.java:4994)
at android.app.ActivityThread.access$3400 (ActivityThread.java:273)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2138)
at android.os.Handler.dispatchMessage (Handler.java:112)
at android.os.Looper.loop (Looper.java:216)
at android.app.ActivityThread.main (ActivityThread.java:7625)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)
Caused by: java.lang.IllegalArgumentException:
at android.view.View.removeFrameMetricsListener (View.java:6565)
at android.view.Window.removeOnFrameMetricsAvailableListener (Window.java:890)
at androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl.remove (FrameMetricsAggregator.java:436)
at androidx.core.app.FrameMetricsAggregator.remove (FrameMetricsAggregator.java:246)
at com.google.firebase.perf.internal.zza.onActivityStopped (Unknown Source:64)
at android.app.Application.dispatchActivityStopped (Application.java:269)
at android.app.Activity.onStop (Activity.java:2042)
at androidx.fragment.app.FragmentActivity.onStop (FragmentActivity.java:636)
at androidx.appcompat.app.AppCompatActivity.onStop (AppCompatActivity.java:184)
at android.app.Instrumentation.callActivityOnStop (Instrumentation.java:1490)
at android.app.Activity.performStop (Activity.java:7708)
at android.app.ActivityThread.callActivityOnStop (ActivityThread.java:4854)
I searched on google, but I can't get this error is coming from Firebase or Document Package. Help me to fix this error. Thank you