Closed StevenMasini closed 5 years ago
Thanks @StevenMasini for reporting the issue and sharing the detailed root cause.
I have merged the PR.
Thanks </ Pranav >
I think we can close this issue.
Thanks @StevenMasini. Closed 😄
Thanks </ Pranav >
Hi @prscX
I found out a crash on Android when the
reference
props provided on the javascript side has not been acknowledged yet by react native.In react native, references to component are only known after the first call to the render method.
On Android when
final ViewGroup target = activity.findViewById(view);
receive an non-existent id,target
will then be null. Of course null object don't have access to the methodgetParent
and will trigger an exception.On iOS I suppose that's not an issue as the method
presentFromView
might be protected from receivingNil
.I will submit a Pull Request that fix this issue for Android.