npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-shadow-mix

v0.0.3

Published

Support package for iOS and Android to achieve similar shadow effects

Downloads

8

Readme

规则

  • 1.使用SpdbShadow包裹需要阴影的组件即可,Android与iOS通用
  • 2.若传入elevation参数,则Android与iOS使用原生阴影,显示效果也一致
  • 3.若需要颜色,偏移,扩散等参数调整,则不可使用elevation参数,否则无效。因实现方式不同,但封装后使用效果Android与iOS尽量相似

API

属性 | 说明 | 类型 | 默认值 ----|-----|------|------ | children | 阴影内容 | React.element | 无 | | elevation | 黑色阴影深度,使用该属性时,为原生阴影样式 | number | 无 | | style | 自定义样式,如backgroundColor | obj | 无 | | width | 宽度(与子组件相同) | number | 0 | | height | 高度(与子组件相同) | number | 0 | | radius | 圆角(与子组件相同) | string | 0 | | border | 阴影边缘扩散 | number | 0 | | color | 阴影颜色 | string | #000 | | opacity | 不透明度 | number | 1 | | x | X轴偏移 | number | 0 | | y | Y轴偏移 | number | 0 |

辅助说明

  • width,height,radius参数iOS端可不传,会自动适应子组件大小
  • style不传会自动适配背景色 白色

效果截图

Android端截图

Android端截图

iOS端截图

iOS端截图