How to override existing built-in components based on reaction

There is a MapView module in reaction-native. ( RCTMapManager module)

It currently does not support custom viewing of annotations. Is it possible to override the method - (MKAnnotationView *)mapView:(__unused MKMapView *)mapView viewForAnnotation:(RCTPointAnnotation *)annotation in the user bridge? Or should I create my own RCTMapManager component from scratch

+5
source share
1 answer

You will need to create your own RCTMapManager component from scratch. The best way to solve this in your use case would be

  • Copy an existing implementation (& rename it)
  • Implementing custom views for annotations (and using them in your project)
  • Fork React-Native and Stretch Request for Custom Annotation Views
0
source

Source: https://habr.com/ru/post/1233358/


All Articles