react-native-shadow-stack-view
v0.1.3
Published
Multiple layered shadows for perfectionists
Maintainers
Readme
react-native-shadow-stack-view
Getting started
yarn add react-native-shadow-stack-view --saveMostly automatic installation
react-native link react-native-shadow-stack-viewManual installation
iOS
- In XCode, in the project navigator, right click
Libraries>Add Files to [your project's name] - Go to
node_modules>react-native-shadow-stack-viewand addRNShadowStackView.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNShadowStackView.ato your project'sBuild Phases>Link Binary With Libraries - Run your project (
Cmd+R)<
Usage
<ShadowStackView
shadows={[
{
color: 'blue',
opacity: 0.5,
radius: 12,
offset: {
width: 20,
height: 30,
},
},
]}
>
...
</ShadowStackView>Props
shadowsarray: A list of Shadow Props object
Caveats
If XCode gives you a linker error and many warnings like Auto-Linking library not found for -lswiftCoreGraphics just add an empty swift file to the root of your .xcodeproj (Source)
