Skip to content

How do i give stroke arround clipped shape? #238

Description

@Kaizodo

This is the code i am using

 <MaskedView
                    style={{ flex: 1, flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }}
                    maskElement={
                        <Svg width="100%" height="100%" viewBox={state.viewBox}>
                            <Path d={state.path} fill="red" />
                        </Svg>
                    }
                >
                    {children}
                </MaskedView>

as you can see i am giving a svg element as mask and works perfectly fine however i want to add border arroud clipped shape for eample if i add a hart shape i want a border arround that shape but right if i give any kind of stroke in svg it just clips that stroke as well,

anyone if you guys have any solution it would be really helpful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions