GithubHelp home page GithubHelp logo

isabella232 / art-5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from instructure/art

0.0 0.0 0.0 939 KB

React Native module that allows you to draw vector graphics.

Home Page: https://github.com/react-native-community/art

License: MIT License

JavaScript 28.58% Ruby 0.80% Objective-C 34.80% Java 35.82%

art-5's Introduction

@react-native-community/art

CircleCI MIT License PRs Welcome Supports Android and iOS Lean Core Badge

NOTE: ART was extracted from core react-native as a part of "Lean Core" effort.

React Native module that allows you to draw vector graphics

Getting started

Installing module

yarn add @react-native-community/art

or

npm install @react-native-community/art --save

Linking module

Mostly automatic linking

For react-native >= 0.60 ReactNativeART should be autolinked and no additional action is required.

For react-native < 0.60 you need to link ReactNative ART:

react-native link @react-native-community/art

Manual linking

Manually linking the library for iOS

Open project.xcodeproj in Xcode

Drag RNCSlider.xcodeproj to your project on Xcode (usually under the Libraries group on Xcode): xcode-add

Link libART.a binary with libraries

Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag the static library from the Products folder inside the Library you are importing to Link Binary With Libraries (or use the + sign and choose library from the list):

xcode-link

Manually linking the library for Android

android/settings.gradle

include ':react-native-art'
project(':react-native-art').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/art/android')

android/app/build.gradle

dependencies {
   ...
   implementation project(':react-native-art')
}

android/app/src/main/.../MainApplication.java

On top, where imports are:

import com.reactnativecommunity.art.ARTPackage;

Add the ARTPackage class to your list of exported packages.

@Override
protected List<ReactPackage> getPackages() {
    return Arrays.asList(
            new MainReactPackage(),
            new ARTPackage()
    );
}

Migrating from the core react-native module

To migrate to this module you need to follow all the installation instructions above and change your imports from:

import {ART} from 'react-native';
const {Surface, Shape} = ART;

to:

import {Surface, Shape} from '@react-native-community/art';

Documentation

You can find API reference here.

Related

License

The library is released under the MIT licence. For more information see LICENSE.

art-5's People

Contributors

esemesek avatar nicklockwood avatar mdvacca avatar sophiebits avatar cpojer avatar javache avatar dependabot[bot] avatar tepamid avatar hramos avatar shergin avatar ide avatar ayc1 avatar zhongwuzw avatar yungsters avatar ttsugriy avatar mikeortiz avatar fkgozali avatar himabindugadupudi avatar thesavior avatar davidaurelio avatar aleclarson avatar aaronechiu avatar bolinfest avatar grabbou avatar armstrongnate avatar nihgwu avatar axe-fb avatar richardbarrell-calvium avatar rubennorte avatar sebmarkbage 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.