MapLibre Native is currently implementing the feature-state API (maplibre-native #1698), which allows for dynamic styling of individual features without re-parsing the entire data source. This is useful for selection states, etc.
I suggest implementing setFeatureState and getFeatureState on the MapView/Source refs, similar to the implementation found in rnmapbox #3741
MapLibre Native is currently implementing the
feature-stateAPI (maplibre-native #1698), which allows for dynamic styling of individual features without re-parsing the entire data source. This is useful for selection states, etc.I suggest implementing
setFeatureStateandgetFeatureStateon the MapView/Source refs, similar to the implementation found in rnmapbox #3741