react native image source local file
<Image source={require('./myimage.png')} />
react native image source local file
<Image source={require('./myimage.png')} />
react native preload local images
import { Image } from 'react-native';
import FastImage from 'react-native-fast-image';
export function preloadImages() {
const images = [
require('../assets/images/graphic1.webp'),
require('../assets/images/graphic2.jpg'),
require('../assets/images/graphic3.webp')
];
const uris = images.map(image => ({
uri: Image.resolveAssetSource(image).uri
}));
FastImage.preload(uris);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us