1.0.2 • Published 1 year ago

react-native-image-loading v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

PropTypeRequiredDescription
imageUrlstringRequiredThe URL of the image to be loaded.
imageWidthnumberOptionalThe width of the image container.
imageHeightnumberOptionalThe height of the image container.
resizeModestringOptionalResize mode for the Image component.
loadingSizestringOptionalThe size of the loading indicator (small or large).
loadingColorstringOptionalThe color of the loading indicator.
titlestringOptionalOptional title to be displayed below the image.
captionstringOptionalOptional caption to be displayed below the title.
onPressfunctionOptionalFunction to be called when the image is pressed.

Styling Props

PropTypeDescription
containerStyleStyleProp<ViewStyle>Style for the entire container.
imageStyleStyleProp<ImageStyle>Style for the image.
titleStyleStyleProp<TextStyle>Style for the title text.
captionStyleStyleProp<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 :)