Right now there is no way to access the information about the connected HeadUnit display. The ReactNative's dimension API gives the information about the phone, not the HeadUnit. The layout information is important when we want to implement animations when using a custom map component.
This PR exposes that information through the didConnect event. The exposed property are width, height, and scale.
I'm not a professional Objective-C developer. Please let me know if there is something wrong with the implementation.
What has changed?
Right now there is no way to access the information about the connected HeadUnit display. The ReactNative's dimension API gives the information about the phone, not the HeadUnit. The layout information is important when we want to implement animations when using a custom map component.
This PR exposes that information through the
didConnect
event. The exposed property arewidth
,height
, andscale
.I'm not a professional Objective-C developer. Please let me know if there is something wrong with the implementation.