react-native-art-wave
v1.0.3
Published
Use Art to draw waves
Downloads
8
Maintainers
Readme
react-native-art-wave
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',
},
});