Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

TileMap prop issues #28

Open
EJRosie opened this issue Apr 29, 2017 · 1 comment
Open

TileMap prop issues #28

EJRosie opened this issue Apr 29, 2017 · 1 comment

Comments

@EJRosie
Copy link

EJRosie commented Apr 29, 2017

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.

@kyeteo
Copy link

kyeteo commented Aug 9, 2018

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants