Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

react-native-art-wave

npm

git

Use Art to draw waves on both iOS and Android.

Install

npm install react-native-art-wave

Add dependency

Android includes the ART library by default, and IOS needs to add dependencies separately.

1.Right click on the project -> 'Add Files to ProjectName -> select node_modules / react-native / React / Libraries / ART / ART.xcodeproj'

2.Add libART.a to Linked Frameworks and Libraries

Usage

import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Dimensions,
} from 'react-native';
import { ArtTest } from "react-native-art-wave"
var ScreenWidth = Dimensions.get('window').width;
var ScreenHeight = Dimensions.get('window').height;
export class MyApp extends Component {
render() {
return (
<View style={styles.container}>
<ArtTest type={"circular"}
proportion={0.6} surfaceWidth = {300} surfaceHeigth ={300} superViewBackgroundColor={"blue"} style = {{backgroundColor:'#FF7800'}}/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
width: ScreenWidth,
height: ScreenHeight,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'blue',
},
});

About

Use Art to draw waves

Resources

Stars

9 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages