reactjs - Could not load image of .JPG format -


i trying load image local resource format .jpg. every time gives me following error.

enter image description here

do react native support .jpg format ? can me on ? thanks...

if sure image_path right rename image in folder capital letters (.jpg) lower case letters (.jpg).

tested case windows , reproduce , fix above solution.

react-native version: 0.23.1

for clarification:

var yourpicture = require('./yourpathtoyourpicture/picture.jpg); //working  var yourpicture = require('./yourpathtoyourpicture/picture.jpg); //not-working 

solution solve capital letter problem: save picture in project folder lower case letters yourpicture.jpg -> yourpicture.jpg

use image

render(){     return(         <image source={yourpicture}/>     ); } 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -