private Texture.Format parseImageFormat(ReadableMap map, String key) {
        Texture.Format format = Texture.Format.RGBA8;
        if (map.getType(key) == ReadableType.Map) {
            if (map.getMap(key).hasKey("format")) {
                format = Texture.Format.forString(map.getMap(key).getString("format"));
            }
        }
        return format;
    }
This function goes through every material and reloads the material
android/viro_bridge/src/main/java/com/viromedia/bridge/module/MaterialManager.java