This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@katis/react-pixi
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

React Pixi renderer

Use React to render Pixi.js 2D graphics.

Example

import * as React from 'react'
import { Application } from 'pixi.js'
import { render, px } from '@katis/react-pixi'

class Player extends React.Component {
    render() {
        return (
            <container position={this.props.position}>
                <sprite image="assets/player.png" />
                <text position={{x: 0, y: -20}}>Player</text>
            </container>
        )
    }
}

const application = new Application({ ... })

render(application, <Player/>, document.getElementById('container'))

Readme

Keywords

none

Package Sidebar

Install

npm i @katis/react-pixi

Weekly Downloads

6

Version

0.2.0

License

MIT

Unpacked Size

24.4 kB

Total Files

37

Last publish

Collaborators

  • katis