#import "UIImage+AMap3D.h"

@implementation UIImage (AMapView)

+(nullable UIImage*)amap_imageNamed: (NSString*)name {
    NSString *path = [[NSBundle mainBundle] pathForResource:@"amap_default" ofType:@"bundle"];
       if(!path){
         path = [[NSBundle mainBundle] pathForResource:@"Frameworks/react-native-anavi.framework/amap_default" ofType:@"bundle"];
       }
       NSBundle *bundle = [NSBundle bundleWithPath:path];
       UIImage *image = [UIImage imageNamed: name inBundle:bundle compatibleWithTraitCollection:nil];
       if (!image) {//都获取不到时,尝试从主app中获取
         image = [UIImage imageNamed:name];
       }
    
    return image;
}

@end
