Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5mb image is not opening in android and loader stops immediately #78

Open
arunravilla opened this issue Mar 17, 2018 · 3 comments
Open

Comments

@arunravilla
Copy link

No description provided.

@oblador
Copy link
Owner

oblador commented May 30, 2018

Hi, sounds like you're having other issues due to the image being so big. This package just uses the regular react-native Image under the hood by default. Can you confirm that it's indeed a problem whit this package and not the regular Image component?

@NNprajapati
Copy link

Image is load successfully but loading is not gone and, is this any method or property to set timing of both process work together.

i am using in Flatlist and i want to load image in each items.

Code is :

import FastImage from 'react-native-fast-image';
import * as Progress from 'react-native-progress';
import { createImageProgress } from 'react-native-image-progress';

const LodingImage = createImageProgress(FastImage);

renderItem(data) {

        let { item, index } = data;

            return (
            <TouchableWithoutFeedback onPress={(event)=>this.didSelectNewsFeed(item)}>
                <View style={styles.itemBlock}>
                    <View style={styles.itemMeta}>
                    <LodingImage 
                                source={{uri:item.image[0]}} 
                                indicator={Progress.Pie} 
                                style={{styles.blockBgImage}} />
                     </View>
                </View>
          </TouchableWithoutFeedback>
        ) 
    }

@ewwmitanshu
Copy link

ewwmitanshu commented Feb 15, 2022

import FastImage from 'react-native-fast-image';
import { createImageProgress } from 'react-native-image-progress';
import { ActivityIndicator } from 'react-native';
import HRColors from '../Utils/HRColors';
import Assets from '../Assets/index';

const HRRecommendedComponent = props => {
const Image = createImageProgress(FastImage);
            return (
           <Image
          indicator={() => (
            <ActivityIndicator size={'small'} color={HRColors.primary} />
          )}
          style={styles.imageStyle}
          source={
            props?.item?.service_images?.length > 0
              ? {
                  priority: 'high',
                  cache: 'immutable',
                  uri: props?.item?.service_images[0]?.image,
                }
              : Assets.noDataImage
          }
        />
        ) 
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants