Detect touch and draw rectangular box on bitmap image using react native - react-native

I've been looking for references for some time on how to draw rectangles in an image using react native, but I can not find anything.
What I try to do is something like the user touch on the screen to mark the start position, and move, and release on the end position. We have to keep displaying the updated square.
Example video
Code is available for native development using java. But I need it on react native.

Related

Is there a way to extract the color info of a pixel on the screen? - React Native

I'm trying to get the color of a pixel at a certain coordinate on the screen in React Native. Currently I only found libraries supporting getting color information at a coordinate in an image, but I'd like to access pixel information without taking a screenshot first.

How to remove background of selected image in react native?

I want to get this kind of effect in React Native.
Such as removing background by touching screen, removing similar color point in one screen, and after select one point, moving finger here and there to remove the background.
Can I get this effect in react native?
If possible, which module should I use?

React native reanimated

I am trying to create a toggle player animation in react native, the same like Spotify, where when you press the miniPlayer , the full size player will show, my problem is that the fullSize Player View is transparent, and I can't seem to get the background of that view to render the proper color.
I created a snack since the original Project is huge and to better understand the issue:
https://snack.expo.io/#git/github.com/oflarcade/MPlayer
MiniPlayer
Full Size Player

React native image cropping in IOS

Currently im using react-native-image-crop-picker React native Free styled image cropping is not enabled in IOS.Crop of picture does not allow a true crop, it lets you move pic around within a narrow given frame but it cuts off parts of the photo. You cannot adjust with zoom in or zoom out. There should be a grid. Can anyone suggest how to use free styled image cropping in ios
I highly recommend the following:
react-native-android-image-cropper on Android and
react-native-image-cropping on iOS

React Native how to clip the camera image for QR scanning

This is my first time using react native and I'm trying to create a QR code scanner. I notice that as I increase the camera size on screen, it is harder for me to get the exact scanning region of the camera. Therefore, may I know if there is any method that works like clip-path in react native so that I can clip off the corner of the image?
Or if there's a way to draw a box near the scanning region?
Something like this:
https://lh4.ggpht.com/4cA87gd0VFuGXLbl76fR27gEwimDRtTR_HzT59pKN5YVbnTvmr6rnbnOa6amDGqD9hs=h900