diff --git a/README.md b/README.md index fff3e21..ab3e7f2 100644 --- a/README.md +++ b/README.md @@ -40,44 +40,45 @@ Then rebuild. ## Usage ```javascript + import React, { StyleSheet, View, Component } from 'react-native'; import Chart from 'react-native-chart'; const styles = StyleSheet.create({ - container: { - flex: 1, - justifyContent: 'center', - alignItems: 'center', - backgroundColor: 'white', - }, - chart: { - width: 200, - height: 200, - }, + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: 'white', + }, + chart: { + width: 200, + height: 200, + }, }); const data = [[ - [0, 1], - [1, 3], - [3, 7], - [4, 9], + [0, 1], + [1, 3], + [3, 7], + [4, 9], ]]; class SimpleChart extends Component { - render() { - return ( - - - - ); - } + render() { + return ( + + + + ); + } } ```