Coder Social home page Coder Social logo

juanpag94 / react-native-squircle-view Goto Github PK

View Code? Open in Web Editor NEW

This project forked from everdrone/react-native-squircle-view

0.0 0.0 0.0 7.64 MB

Apple flavored curvature continuity for React Native

License: MIT License

JavaScript 10.82% Objective-C 4.85% Ruby 2.96% Swift 31.69% Java 49.68%

react-native-squircle-view's Introduction

SquircleView

Apple flavored curvature continuity for React Native

Sponsors

Getting started

yarn add react-native-super-ellipse-mask

Mostly automatic installation

react-native link react-native-squircle-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-squircle-view and add RNSquircleView.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNSquircleView.a to your project's Build Phases > Link Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

<SquircleView style={styles.whatever} interpolatePath={true}>
  ...
</SquircleView>

Props

  • interpolatePath bool: Interpolates the corner shape from super elliptical to circular. Defaults to true

interpolatePath

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)

Known Issues

  • Non compliant CSS borders: Currently this library doesn't support CSS compliant borders (like React Native's <View/> does).
  • Limited corner radius: The maximum corner radius for each corner can't be greater than half of the smallest side of the view.

react-native-squircle-view's People

Contributors

everdrone avatar maxperry avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.