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

Sprite Src Issue In RN #58

Open
micahkatz opened this issue Dec 21, 2017 · 2 comments
Open

Sprite Src Issue In RN #58

micahkatz opened this issue Dec 21, 2017 · 2 comments

Comments

@micahkatz
Copy link

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
Copy link

Hi katzmannn,

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

@eavam
Copy link

eavam commented Feb 16, 2018

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

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

Successfully merging a pull request may close this issue.

3 participants