Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-anchor-point

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-anchor-point - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

index.ts

@@ -0,1 +1,3 @@

import { TransformsStyle } from "react-native";
export interface Point {

@@ -25,3 +27,3 @@ x: number;

export const withAnchorPoint = (transform, anchorPoint: Point, size: Size) => {
export const withAnchorPoint = (transform: TransformsStyle, anchorPoint: Point, size: Size) => {
if (!isValidPoint(anchorPoint)) {

@@ -28,0 +30,0 @@ return transform;

{
"name": "react-native-anchor-point",
"version": "1.0.2",
"version": "1.0.3",
"description": "I provide a util function to inject anchor point, or called pivot point into your transform object, to achieve 3D transform animation in React-Native. This is similar to web transform-origin in React-Native. ",

@@ -22,4 +22,5 @@ "main": "index.ts",

"eslint": "^7.0.0",
"eslint-plugin-react": "^7.20.0"
"eslint-plugin-react": "^7.20.0",
"react-native": "^0.62.2"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc