This package is deprecated. For an alternative, see react-poke-sprites.
This is a react component that renders an animated sprite of a pokemon. The sprites are from Pokestadium.
Try a demo at react-pokemon-gif.jackrzhang.com.
$ npm install react react-dom react-pokemon-gif --save
Node.js v6+
The identifier for a specific pokemon. If type string, a valid pokemon name is expected. If type number, a valid pokedex number (1 - 721) is expected.
The value representing the height of the sprite, in pixels.
The class name to be added to image element.
import React from 'react';
import ReactDOM from 'react-dom';
import PokemonGif from 'react-pokemon-gif';
ReactDOM.render(
<PokemonGif
pokemon={'Pikachu'}
height={150}
/>,
document.getElementById('react-root')
);
Issues and pull requests are welcome.
$ git clone https://github.com/jackrzhang/react-pokemon-gif
$ cd react-pokemon-gif
$ npm install
$ npm start
Please run linting and tests prior to commits.
$ npm run lint
$ npm test