oblador / react-native-image-progress

Progress indicator for networked images in React Native
MIT License
1.72k stars 177 forks source link

Could not find image file yellow box warning #66

Closed BigPun86 closed 6 years ago

BigPun86 commented 6 years ago

Hey there. I receive several "Could not find image file" yellow box warning when using this component. Any ideas how to "fix" this?

import { createImageProgress } from "react-native-image-progress";

const ImageComponent = props => {
    const style = [props.style, { borderRadius: 8 }];
    const newProps = { ...props, style };
    return <Image {...newProps} />;
};

const ImageProgress = createImageProgress(ImageComponent);

 <ImageProgress
            renderIndicator={() => (
                <ActivityIndicator
                    animating={true}
                    color={styles.thumbnailIndicatorColor}
                    size="small"
                    style={{ position: "absolute", right: 20 }}
                />
            )}
            source={{ uri: document.thumbnail }}
            style={styles.thumbnail}
        />
screen shot 2017-11-24 at 22 35 33
HoogsterInc commented 6 years ago

I'm also having this problem

oblador commented 6 years ago

This is just proxied to the underlying image component, I think you have an issue with your file itself.