Draw the outline of a shape in react native - react-native

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: https://snack.expo.dev/#melampus123/rectangle-drawing
and here is my desired image:

Just use ViewStyleProps in react-native.
I modified your example and commented here: https://snack.expo.dev/#pqv2210/rectangle-drawing

Related

react native allowing users to apply color using different svg paths with animation and blend on top of a background image

I have an original svg image (like an interior of a room) and different svg paths (walls,ceiling in a room) which are positioned on top of the original image. OnPress of different svg paths color is applied.
Challenge is it does not get blend with the backgroung image.
Second while the color is applied on the path not able to animate the color fill something like starting from center and then applying to the entire path withTiming.
Packages used are react-native-svg and react-native-reanimated
Is there any other way to approach this in react native? Is such animation possible , if yes how can it be achieved.

Draw rectangle on image in Avalonia

Problem : I have an image with zoom and pan attached. I need to draw rectangles over it.
What I have done : I created a Canvas as an overlay over the image and made rectangle the children of canvas. Everything works well with zoom and pan etc but if the user resizes my the window then the added rectangles starts moving from their places because the rectangle position is set with respect to top and left of canvas.
I am thinking of drawing rectangles over the image and overriding the render. Any suggestions how can I achieve it easily?

React Native transparent, clipping border radius?

Hello guys I want to make a transparent border radius so I can achieve
This style. (The icons border is clipping the box)

Windows 8 Metro app: blur animation filter on an image

Does anyone know or have any hints as to how I could animate a blur of an image from focus to blur over the course of about 1 second?
Essentially the same question as this, but on Windows 8!
Animating a gaussian blur using core animation?
You can create a blurred version of the image - e.g. using WriteableBitmapEx and then overlay the blurred version on top of the original and animate its opacity from 0 to 1.
Alternatively - you could do DirectX interop and animate a property bound to a pixel shader input that controls the blurriness, though that might be a bit more work.
Blur isn't an animation in the WinRT Animation Library for Xaml
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.media.animation.aspx#classes
What are you trying to accomplish by the blur?
Have you tried this animation?
- FadeOutThemeAnimation

NSStatusBar item glow without the glow image on Xcode

How can i make something like this glow on a status bar item?
I know that i can do that with another png, but i have seen some other applications where they only have the black icon of the statusbar, no glow.
How can i do that?
Thanks
Just draw your image with a white drop shadow (some blur radius, no offset) in a custom view. NSShadow makes this very easy to do.