
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-native-skia-shadow
Advanced tools
Android and iOS compatible shadows with React Native Skia.
Report Bug
·
Request Feature
Take a look at the iOS and Android screenshots below.
@shopify/react-native-skianpm install @shopify/react-native-skia
yarn add @shopify/react-native-skia
(MacOS only) Install Cocoa packages
npx pod-install
npx expo install @shopify/react-native-skia
npm install react-native-skia-shadow
yarn add react-native-skia-shadow
Wrap the component you want to add a shadow inside a SkiaShadow component.
| Prop | Type | Default |
|---|---|---|
| blur | number | |
| dx | number | |
| dy | number | |
| color | Color | 'black' |
| borderRadius | number | 0 |
| borderTopLeftRadius | number | borderRadius |
| borderTopRightRadius | number | borderRadius |
| borderBottomLeftRadius | number | borderRadius |
| borderBottomRightRadius | number | borderRadius |
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { SkiaShadow } from 'react-native-skia-shadow';
export const App = () => {
return (
<View style={styles.container}>
<SkiaShadow blur={5} dx={0} dy={0} color="blue" borderRadius={9999}>
<View style={styles.circle} />
</SkiaShadow>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
circle: {
width: 150,
height: 150,
borderRadius: 9999,
backgroundColor: 'red',
},
});
For usage details, please refer to the src folder of the example app. https://github.com/chsdwn/react-native-skia-shadow/tree/main/example/src
See the contributing guide to learn how to contribute to the repository and the development workflow.
Distributed under the MIT License. See LICENSE for more information.
FAQs
Android and iOS shadows with React Native Skia.
We found that react-native-skia-shadow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.