Socket
Book a DemoInstallSign in
Socket

@unpourtous/react-native-clip-image

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unpourtous/react-native-clip-image

this component use for clipping image with animation.

0.1.2
latest
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
3
Weekly downloads
 
Created
Source

react-native-clip-image

JavaScript Style Guide

Introduction

This component depends on react-native-svg. With this component you can clip a image both on android and ios. Since there is an issue about animation on higher version, we recommand using react-native-svg@4.5.0

demo

Installation

  • Install react-native-svg from npm

    npm install react-native-svg@4.5.0 --save
    
  • Link native code

    react-native link react-native-svg
    
  • Install react-native-clip-image from npm

    npm install @unpourtous/react-native-clip-image --save
    

Usage

First, add PopupStub as sibling node of you Root Node

export default class example extends Component {
  render () {
    return (
      <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
        <ClipImage
          style={{
            borderRadius: 10
          }}
          width={300}
          height={225}
          source={require('./images/monster.png')}
          duration={600}/>
      </View>
    )
  }
}

Thanks

Keywords

react-native

FAQs

Package last updated on 14 Apr 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.