Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@dotmind/rn-shadow-generator
Advanced tools
React Native Shadow Generator is a tool to quickly generate your shadow's Components. Tool builded by .mind team.
React Native Shadow Generator to quickly generate shadow of your components. Builded by .mind.io
yarn add @dotmind/rn-shadow-generator
or
npm i @dotmind/rn-shadow-generator --save
import { ShadowView } from '@dotmind/rn-shadow-generator';
const BasicComponent = () => {
return (
<ShadowView>
<Text>My Shadow View</Text>
</ShadowView>
);
}
const MyCustomComponent = () => {
return (
<ShadowView level={4} shadowColor={'#000'} direction={'bottom'}>
<Text>My Shadow View</Text>
</ShadowView>
);
}
props | description | required | default value |
---|---|---|---|
level | Increase shadow dimensions | false | 4 |
shadowColor | Change shadowColor style attribute | false | #000 |
direction | Change shadow direction | false | bottom |
Returns a full shadow object depending on OS (iOS or Android).
import { generateShadow } from '@dotmind/rn-shadow-generator';
const BasicComponent = () => {
return (
<View style={{ ...generateShadow() }}>
<Text>My Shadow View</Text>
</View>
);
}
const MyCustomComponent = () => {
return (
<View style={{ ...generateShadow({ level: 4, shadowColor: '#000', direction: 'bottom' }) }}>
<Text>My Shadow View</Text>
</View>
);
}
attributes | description | required | default value |
---|---|---|---|
level | Increase shadow dimensions | false | 4 |
shadowColor | Change shadowColor style attribute | false | #000 |
direction | Change shadow direction | false | bottom |
Object returned
{
...Platform.select({
ios: {
shadowColor,
shadowOffset,
shadowOpacity,
shadowRadius,
},
android: {
shadowColor,
elevation: level,
},
}),
}
To see full app integration example please refer to here.
⚠️ To run the app please run here
yarn build
that the @dotmind/rn-shadow-generator npm package be able to link itselfs.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
React Native Shadow Generator is a tool to quickly generate your shadow's Components. Tool builded by .mind team.
The npm package @dotmind/rn-shadow-generator receives a total of 5 weekly downloads. As such, @dotmind/rn-shadow-generator popularity was classified as not popular.
We found that @dotmind/rn-shadow-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.