react-native-shadow-stack-view
v0.1.3
Published
Multiple layered shadows for perfectionists
Downloads
3
Maintainers
Readme
react-native-shadow-stack-view
Getting started
yarn add react-native-shadow-stack-view --save
Mostly automatic installation
react-native link react-native-shadow-stack-view
Manual 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-view
and addRNShadowStackView.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNShadowStackView.a
to 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
shadows
array
: 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)