FormidableLabs / react-game-kit

Component library for making games with React & React Native

Home Page:http://reactnext.surge.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TileMap prop issues

EJRosie opened this issue · comments

TileMap asks for a src prop which on the ReadMe says a string, but the code asks for a number. As well as the src prop needs "require={string}" and not just the string.

static propTypes = { columns: PropTypes.number, layers: PropTypes.array, renderTile: PropTypes.func, rows: PropTypes.number, scale: PropTypes.number, sourceWidth: PropTypes.number.isRequired, src: PropTypes.number, style: PropTypes.object, tileSize: PropTypes.number, };

I found the props declare in tile-map.js for react native , it declared the 'src' number type, doesn't it should be string ?