Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 749 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 749 Bytes

react-moonphase Build Status Greenkeeper badge

Display lunar phase with React and Pixi.js

Screenshot of moon phase

Demo

https://nikolas.github.io/react-moonphase/

Usage

  • npm install --save react-moonphase
import MoonPhaseView from 'react-moonphase';

// ...

render() {
    return (
        <MoonPhaseView
            moonPhase={this.state.moonPhase}
            onMoonPhaseUpdate={this.onMoonPhaseUpdate.bind(this)} />
    );
}