-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Use this with react-native-image-progress #6
Comments
Thanks for your suggestion. The Any thoughts? |
I would say it just centers it, using flexbox this it doesn't need to know the height |
Currently the |
@vivaxy what about just having a preloader until the image of loads regardless of the height? |
@AlmogRnD It's a good idea to add a const renderIndicator = (progress, indeterminate) => {
};
// ...
<AutoHeightImage {...props} renderIndicator={renderIndicator} /> Implement as follows: class AutoHeightImage extents Component {
// ...
render() {
if (this.isLoading) {
return renderIndicator(progress, indeterminate);
} else {
return <Image {...props} />;
}
}
} PR is welcomed. |
Is it possible to use this or add support with the following package, so there is a progress loader - https://github.com/oblador/react-native-image-progress
The text was updated successfully, but these errors were encountered: