FormidableLabs / react-game-kit

Component library for making games with React & React Native
http://reactnext.surge.sh
MIT License
4.62k stars 309 forks source link

Sprite Src Issue In RN #58

Open micahkatz opened 6 years ago

micahkatz commented 6 years ago

I am using React Native and I am making a game with this library. When I made a sprite, it came up with this warning, but the sprite shows up and works completely fine. It is more of an annoyance with the ugly yellow warning image

-- I have tried src={'../../images/sampleimage.png'} and it seems to make the error go away but the image isn't there. Here is my code => image

DevonYarbrough commented 6 years ago

Hi katzmannn,

You'll need to remove the brackets. Should look like: src="../../images/sampleimage.png"

eavam commented 6 years ago

Hi katzmannn, I made a pull request. This can help.