react-native-image-loading
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

React Native Image Loading

Image loading component for React Native with customizable styling and loading indicators.

GIF

Installation

npm install react-native-image-loading
yarn add react-native-image-loading

Props

Prop Type Required Description
imageUrl string Required The URL of the image to be loaded.
imageWidth number Optional The width of the image container.
imageHeight number Optional The height of the image container.
resizeMode string Optional Resize mode for the Image component.
loadingSize string Optional The size of the loading indicator (small or large).
loadingColor string Optional The color of the loading indicator.
title string Optional Optional title to be displayed below the image.
caption string Optional Optional caption to be displayed below the title.
onPress function Optional Function to be called when the image is pressed.

Styling Props

Prop Type Description
containerStyle StyleProp<ViewStyle> Style for the entire container.
imageStyle StyleProp<ImageStyle> Style for the image.
titleStyle StyleProp<TextStyle> Style for the title text.
captionStyle StyleProp<TextStyle> Style for the caption text.

License

This project is licensed under the ISC License.

Contributing

Contributions are welcome! Please feel free to open issues or submit pull requests.

If you find a bug or have any feature requests, please open an issue :)

Package Sidebar

Install

npm i react-native-image-loading

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

15.7 kB

Total Files

16

Last publish

Collaborators

  • pawan779