Using variable for image path
suggest changelet imagePath = require("../../assets/list.png");
<Image style={{height: 50, width: 50}} source={imagePath} />
From external resource:
<Image style={{height: 50, width: 50}} source={{uri: userData.image}} />
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents