I want to draw a rectangle in react native with a black outline and transparent center. I am able to draw a rectangle but I am not able to make its center transparent. Here is an expo example of how I'm drawing a rectangle:
CodePudding user response:
Just use ViewStyleProps in react-native.
I modified your example and commented here: https://snack.expo.dev/@pqv2210/rectangle-drawing