react-native-art 1.2.1
Install from the command line:
Learn more about npm packages
$ npm install @newn-team/react-native-art@1.2.1
Install via package.json:
"@newn-team/react-native-art": "1.2.1"
About this version
DEPRECATED - This package is deprecated. If you need a similar package please consider using react-native-svg.
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
yarn add @react-native-community/art
or
npm install @react-native-community/art --save
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
Manually linking the library for iOS
Drag RNCSlider.xcodeproj
to your project on Xcode (usually under the Libraries group on Xcode):
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):
Manually linking the library for Android
include ':react-native-art'
project(':react-native-art').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/art/android')
dependencies {
...
implementation project(':react-native-art')
}
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()
);
}
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';
You can find API reference here.
- react-native-svg - Render SVGs in any React project
The library is released under the MIT licence. For more information see LICENSE
.
Details
- react-native-art
- newn-team
- over 2 years ago
- MIT
- 14 dependencies
Assets
- react-native-art-1.2.1-npm.tgz
Download activity
- Total downloads 2,424
- Last 30 days 11
- Last week 6
- Today 0