Skip to content

christianbaroni/react-native-shadow-stack-view

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. In XCode, in the project navigator, right click Libraries > Add Files to [your project's name]
  2. Go to node_modules > react-native-shadow-stack-view and add RNShadowStackView.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNShadowStackView.a to your project's Build Phases > Link Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

<ShadowStackView
  shadows={[
    {
      color: 'blue',
      opacity: 0.5,
      radius: 12,
      offset: {
        width: 20,
        height: 30,
      },
    },
  ]}
>
  ...
</ShadowStackView>

Props

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)

About

Multiple layered shadows for perfectionists

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 49.7%
  • JavaScript 22.6%
  • Objective-C 15.8%
  • Ruby 11.9%