New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-clippathview

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-clippathview

ClipPath Android Web IOS

latest
Source
npmnpm
Version
1.1.8
Version published
Maintainers
1
Created
Source

React Native ClipPath

android: api 21+
ios : 10.0+
web: svg

Example --> Demo

Getting started

$ npm install react-native-clippathview --save
$ react-native link react-native-clippathview

Yarn

yarn add react-native-clippathview

IOS

Add Swift

(If you are using expo sdk >=42 you don't need to do this)

/ios/name_project

add a .swift file

Usage

ClipPathViewH (Android Layer type Hardware)

import {ClipPathView , ClipPathViewH } from 'react-native-clippathview'

// TODO: What to do with the module?
    <ClipPathView style={{backgroundColor:'green'}} 

       
        d={myPath}
        viewBox={myViewBox}
        
        
    
    >
  
        <View >
            <Text style={{color:'white'}}>hello world</Text>
        </View>
        
    </ClipPathView>

Props

Namedescriptiontypedefault
svgKeyEach view must have a different keyString""
dThe shape, defined by a series of commandsString""
viewBoxdefines the position and dimension, in user spaceArray[Number] (4)undefined
alignthe aligmentStringxMidYMid
aspectaspect ratioStringmeet
fillRuledetermines what side of a path is inside a shapeStringnonzero
strokeWidthdefines the thickness of a line (mobile)Number1
strokeCapline cap (mobile)string'butt'
strokeJoinline join (mobile)string'miter'
strokeMitercontrol the behavior of miter (mobile)Number4
strokeStartthe start (mobile)Number0
strokeEndthe end (mobile)Number1

Transform


The percentageValue property refers to the fact that the Origin will be multiplied by the size of the view.

Nametypedefault
translateZNumber (zIndex)0
transXNumber0
transYNumber0
transPercentageValueBoolfalse
rotNumber0
rotOxNumber0
rotOyNumber0
rotPercentageValueBoolfalse
scNumber1
scXNumber1
scYNumber1
scONumber0
scOxNumber0
scOyNumber0
scPercentageValueBoolfalse

Keywords

react-native

FAQs

Package last updated on 28 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts