mitogh / react-native-image-placeholder

Load images incrementally to provide a better UX
32 stars 10 forks source link

Placeholder support for local image #3

Open fpena opened 6 years ago

fpena commented 6 years ago

It'd be cool to pass a local image, instead of remote one to show the placeholder.

mitogh commented 6 years ago

Thank you we are going to add support for this on the next version. @fpena

fpena commented 6 years ago

Great, thanks!

bbeckk commented 6 years ago

Is it done? How can we add local image as placeholder?

PayorVladimir commented 4 years ago

You can pass local image by changing this pice of code:_renderPlaceholder() { return ( <Animated.View style={this._getPlaceholderStyles()}> <Image style={[styles.placeholder, this.props.placeholderStyle]} source={this.props.placeholder} /> {this._renderActivityIndicator()} </Animated.View> ); }