react-native-shadow-stack-view

0.1.3 • Public • Published

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)

Package Sidebar

Install

npm i react-native-shadow-stack-view

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

30.3 kB

Total Files

16

Last publish

Collaborators

  • everdrone