React Native Maps: Markers image doesn't show using Custom Marker in react-native-maps

后端 未结 10 1964
别那么骄傲
别那么骄傲 2021-02-05 16:52

I\'m using react-native-maps but I faced a problem that after a lot of googling without answer makes me ask it here. I\'m trying to use Custom Marker for the marker

10条回答
  •  不要未来只要你来
    2021-02-05 17:32

    @Mahdi Bashirpour solution works for me. just upgrading above answer.

    Other Images stop working if we import 'Image' from 'react-native-svg'

    My solution is below.

    import {Image} from 'react-native';   // for other images in our render method.
    import { Image as Imagesvg } from 'react-native-svg';
    
    
    
    
          
              // Local Images
              //Server images
        
    
    
    

    Use 'Imagesvg' for marker image. It's working for me on android 7 and 8. React native version '0.55.3'

提交回复
热议问题