lundi 20 avril 2015

Trouble with React Native Image element handling URI based image location

I'm trying to display an image with a URI location instead of a static image and it's not working. I'm getting the red screen with the message: 'You are trying to render the global Image variable as a React element. You probably forgot to require Image.' I simply took the default project (react-native init awesomeProject) and added this inside the : http://ift.tt/MIVljy'}} /> And I enhanced the styles to include: base: { height: 400, width: 400 },

I can't figure out why this wouldn't work as this is the example in the React Native docs. Any advice?

Aucun commentaire:

Enregistrer un commentaire