Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I use require in Image tag,but it does not work。 #882

Closed
imochen opened this issue Apr 16, 2015 · 4 comments · May be fixed by jrogatis/react-native#1
Closed

I use require in Image tag,but it does not work。 #882

imochen opened this issue Apr 16, 2015 · 4 comments · May be fixed by jrogatis/react-native#1
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@imochen
Copy link

imochen commented Apr 16, 2015

<Image source={require('image!back_button')} style={Styles.backButton} />

run without any error , but the image did not show ?

how can i resolve it?

thanks!

@imochen
Copy link
Author

imochen commented Apr 16, 2015

now , it has been resolved . but , i think you should make a demo for this。otherwise, someone maybe do not konw how to use!

@ericzwong
Copy link

you will set width and height

@imochen
Copy link
Author

imochen commented Apr 16, 2015

need Images.xcassets folder and xx.imageset

@ericzwong
Copy link

@imochen The problem here is obviously not like this,If the picture is not in Images.xcassets which then displays an error, instead of not displaying an error

@imochen imochen closed this as completed Apr 21, 2015
@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants