
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@sarmad1995/react-native-content-loader
Advanced tools
Provide a placeholder at the place which need waiting for loading, Easy to implement and fun to use, this package is highly customizable, Please go through docs to find info :).
Npm package is now @sarmad1995/react-native-content-loader!
npm install @sarmad1995/react-native-content-loader --save
yarn add @sarmad1995/react-native-content-loader
<ContentLoader active />
<ContentLoader active avatar />
<ContentLoader active avatar loading={this.state.loading}>
<Text>This would be rendered with loading is false</Text>
</ContentLoader>
<ContentLoader active avatar pRows={4} />
<ContentLoader active avatar pRows={4} pWidth={["100%", 200, "25%", 45]} />
These are also flexible and customizable
| Facebook loader | Instagram loader |
|---|---|
![]() | ![]() |
import { FacebookLoader, InstagramLoader } from '@sarmad1995/react-native-content-loader';
<FacebookLoader active />
<InstagramLoader active />
<Bullets active listSize={10} />

import ContentLoader from 'react-native-content-loader';
<ContentLoader
avatar
pRows={5}
pHeight={[100, 30, 20]}
pWidth={[100, 70, 100]}
/>
| Added custom heights and widths | Same with other loaders |
|---|---|
![]() | ![]() |
Some more examples,
<FacebookLoader pHeight={[20, 10]} />
<ContentLoader reverse avatar pRows={5} pHeight={[40, 30, 20]} />
<ContentLoader active listSize={10} />
| Default Loader | Colored |
|---|---|
![]() | ![]() |
import ContentLoader, { FacebookLoader, InstagramLoader, Bullets } from '@sarmad1995/react-native-content-loader';
<ContentLoader active />
primaryColor?: string, rgba/hexDefaults to rgba(220, 220, 220, 1).
secondaryColor? string, rgba/hexDefaults to rgba(200, 200, 200, 1).
animationDuration? numberDefaults to 500. The animation transition time from primaryColor to secondaryColor
loading?: bool | nullDefaults to null, If given a bool value, when false, it will return children (Works as a wrapper component)
active? boolDefaults to false, true if you want to animate the compoennt.
title? boolDefaults to true. If you want to show the title, Works only with ContentLoader.
titleStyles? objectAdd styles to title.
listSize? numberDefaults to 1. If you want to render a list of loaders, Works with all the loaders.
avatar? boolDefaults to false. If you want to render the avatar.
aShape? string 'circle' | 'square'Defaults to circle. shape of the avatar, can be circle or square.
aSize? string 'default' 'small' 'large' | number Defaults to default. can be a specific number.
reverse? boolDefaults to false. if you want to reverse the view.
containerStyles? objectIf you want to add style to container.
tHeight? string | numberUsed to change the title height.
tWidth? stirng | numberUsed to change the title width.
sTHeight? string | numberUsed to change the secondary title height Works with only Facebook and Instagram.
sTWidth? string | numberUsed to change the secondary title width Works with only Facebook and Instagram.
titleStyles? objectAdd styles to title.
secondaryTitleStyles? objectAdd styles to secondaryTitle. Works with only Facebook and Instagram.
pHeight? string | number | arrayParagraph line height, Can specify same height with single value, Or could use array for different heights, eg ['100%', 200, 300], you can use pHeight and pWidth to achieve different shapes as well,
pWidth? string | number | array Paragraph line width, Can specify same width with single value, Or could use array for different widths, eg ['100%', 200, 300]
paragraphStyles? objecctAdd paragraph styles
imageHeight? numberChange the height of the image
imageStyles? numberAdd styles to image
See CHANGE_LOG.md.
Feel free to contribute, this is still in beta and I have plans to include more features in future :)
FAQs
easy content loader for react-native apps
We found that @sarmad1995/react-native-content-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.