Socket
Socket
Sign inDemoInstall

@dotmind/rn-shadow-generator

Package Overview
Dependencies
0
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

lib/index.d.ts

@@ -15,7 +15,7 @@ import * as React from 'react';

*/
declare const generateShadow: ({ level, shadowColor, direction, }: {
declare const generateShadow: (params?: {
level?: number | undefined;
shadowColor?: string | undefined;
direction?: DirectionType | undefined;
}) => ShadowType;
} | undefined) => ShadowType;
interface ShadowViewProps {

@@ -22,0 +22,0 @@ level?: number;

@@ -34,3 +34,6 @@ import * as React from 'react';

*/
const generateShadow = ({ level = 4, shadowColor = '#000', direction = 'bottom', }) => {
const generateShadow = (params) => {
const level = (params === null || params === void 0 ? void 0 : params.level) || 4;
const shadowColor = (params === null || params === void 0 ? void 0 : params.shadowColor) || '#000';
const direction = (params === null || params === void 0 ? void 0 : params.direction) || 'bottom';
const shadowOffset = adjustShadowOffsetOnDirection(level, direction);

@@ -37,0 +40,0 @@ const shadowOpacity = Number(interpolate(level, 1, 24, 0.2, 0.6).toFixed(2));

{
"name": "@dotmind/rn-shadow-generator",
"version": "1.0.0",
"version": "1.0.1",
"description": "React Native Shadow Generator is a tool to quickly generate your shadow's Components. Tool builded by .mind team.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -11,5 +11,14 @@ <div align="center">

<p align="center">
<a href="https://github.com/dotmind/rn-shadow-generator">
<img src="https://img.shields.io/npm/v/@dotmind/rn-shadow-generator" />
</a>
<a href="https://codecov.io/gh/dotmind/rn-shadow-generator">
<img src="https://codecov.io/gh/dotmind/rn-shadow-generator/branch/master/graph/badge.svg?token=FBX6GCYOQF"/>
</a>
<a href="https://github.com/dotmind/rn-shadow-generator">
<img src="https://img.shields.io/github/license/dotmind/rn-shadow-generator" />
</a>
<a href="https://github.com/dotmind/rn-shadow-generator">
<img src="https://img.shields.io/npm/types/typescript" />
</a>
</p>

@@ -16,0 +25,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc