@ReactMethod
    public void deleteMaterials(ReadableArray materials) {
        for (int i = 0; i < materials.size(); i++) {
            String materialName = materials.getString(i);
            if (sMaterialsMap.containsKey(materialName)) {
                // we need to delete the native ref before we remove the material
                sMaterialsMap.get(materialName).getNativeMaterial().dispose();
                sMaterialsMap.remove(materialName);
            }
        }
    }
This function goes through every material and reloads the material
android/viro_bridge/src/main/java/com/viromedia/bridge/module/MaterialManager.java