I have all my static images in a folder called \"images\" in the root of my project. However, after I run the following command to bundle my app, the app works but no image
Local assets do not load even if you are working on a newer Xcode versions
i.e. 12.x
or later. There are two solutions to it :
node_modules > react-native > Libraries > Images > RCTUIImageViewAnimated.m search for `if (_currentFrame)`
add the following else block to the if block as below
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
} else {
[super displayLayer:layer];
}
If its older xcode you need to add assets
and main.jsbundle
under Xcode -> build phases -> copy bundle resources