googlemaps / react-native-navigation-sdk

Apache License 2.0
25 stars 4 forks source link

fix: ensure EventDispatcher always receives non-null data from NavViewEvent #256

Closed jokerttu closed 1 month ago

jokerttu commented 1 month ago

Fixes #252

This PR addresses the issue where the EventDispatcher on Android implementation could potentially receive null data from the NavViewEvent getEventData() method, leading to crashes in specific cases (such as during the onMapReady event).

Changes: Updated getEventData() in NavViewEvent to return an empty WritableMap when eventData is null.