Skip to content

ZScholes18/rn-echarts-zzs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rn-echarts-zzs

Baidu Echarts for react-native depends on the propties onMessage&&postMessage of the component WebView
react-native version >= 0.40

propties

  • option
  • onMessage
  • other View propties

methods

  • setOption
  • on
  • off
  • dispatchAction

Install

npm install rn-echarts-zzs --save

Usage

import React, { Component } from 'react';
import {
    View
} from 'react-native';
import styles from './styles';
import ChartView from './rn-echarts/index';
import { StackNavigator } from 'react-navigation';
import { barOption } from './data';

export default class SimpleExample extends Component {
    static navigationOptions = {
        title: 'SimpleExample',
    };
    render() {
        return (
            <View style={styles.container}>
                <ChartView
                    ref={(c) => this.chart = c}
                    option={barOption}
                />
            </View>
        );
    }
}

About

Baidu Echarts for react-native depends on the propties onMessage&&postMessage of the component WebView

Resources

Stars

Watchers

Forks

Packages

No packages published