How to pixelify an image in react native?

Solution for How to pixelify an image in react native?
is Given Below:

So I want to pixelify an image in react native based on a slider. Also, I want to overlay the values of the pixels (once the image gets sufficiently pixelated). Are there any libraries for the pixelifying images in react native? The ones I found are mainly in react and don’t work in react native and expo.