private String parseAssetType(ReadableMap map, String key) {
        if ((map.getType(key) == ReadableType.Map) && map.getMap(key).hasKey("type")) {
            String type = map.getMap(key).getString("type");
            if (type != null && !type.equalsIgnoreCase("unknown")) {
                return type;
            }
        }
        return null;
    }
This function goes through every material and reloads the material
android/viro_bridge/src/main/java/com/viromedia/bridge/module/MaterialManager.java