This package has been deprecated

Author message:

For an alternative, see react-poke-sprites.

react-pokemon-gif

1.0.2 • Public • Published

This package is deprecated. For an alternative, see react-poke-sprites.

react-pokemon-gif

npm Build Status dependencies Status

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.

Installation

$ npm install react react-dom react-pokemon-gif --save

Requirements

Node.js v6+

API - Props

pokemon : string or number

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.

Optional

height : number

The value representing the height of the sprite, in pixels.

className : string

The class name to be added to image element.

Example

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')
);
 

Contributing

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

License

MIT

Package Sidebar

Install

npm i react-pokemon-gif

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

12.8 kB

Total Files

7

Last publish

Collaborators

  • jackrzhang