Closed armbox closed 6 years ago
@armbox as far as i understand it this is a no-fix since the listener is not static, and thus is already initialized at object creation.
Yes you are correct I realize that just after sent the PR. However, the callback is happening before the js engine is initialized. Please fix it correctly.
Thanks
start OnGlobalLayoutListener listening on Object creation, not on Class loading.
the onGlobalLayout callback can be called before RN JS module has initialized. So it can cause a crash depends on timing(such as debugger loading).