Michael Gerdes
Michael Gerdes
Sounds cool :) I support adding it to F-Droid!
@jacobp100 I'm seeing this issue too. It seems like it's because is we are hitting this timeout in SafeAreaView and that freezes the UI for 500ms https://github.com/th3rdwave/react-native-safe-area-context/blob/b086b0ef5043836b72c6430cca1641641694fbce/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt#L97-L99 I debugged a...
> Good catch on that. If you're able to get some flame graph and figure out what exactly is blocking the main thread, that would be helpful. Is this something...
> If you increase the max time nanos to something much longer (say 10s), does it finish before? Or do we have a deadlock? Yea, I just upped it to...
We are on react-native 0.72.5. No we are not using fabric. I printed the value of `getReactContext(this).isOnNativeModulesQueueThread` at the start of the function - outside of `runOnNativeModulesQueueThread`, and it returns...
Here's what the stacktrace looks like in `runOnNativeModulesQueueThread` ``` java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1615) at com.th3rdwave.safeareacontext.SafeAreaView.waitForReactLayout(SafeAreaView.kt:71) at com.th3rdwave.safeareacontext.SafeAreaView.updateInsets(SafeAreaView.kt:52) at com.th3rdwave.safeareacontext.SafeAreaView.maybeUpdateInsets(SafeAreaView.kt:113) at com.th3rdwave.safeareacontext.SafeAreaView.onAttachedToWindow(SafeAreaView.kt:134) at android.view.View.dispatchAttachedToWindow(View.java:21357) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3491) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3498) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3498)...
I'm not sure what you mean? Before and after it's inside `runOnNativeModulesQueueThread`? Or still inside of `runOnNativeModulesQueueThread`?