importing project images in react native

JavaScript
    
make a index.js file in your images folder (you have crated)

const images = {
        main_bg: require('./background.png'),
        main_logo: require('./auth/home_title.png'),
        ///you can add more many images like this here.
    };


module.exports = images;

================================================>

To import images in yourfile.js

import images from './images/index'

you can use=>
 <Image style={ source={images.main_bg}></Image>
Source

Also in JavaScript: