Skeleton | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Resources
Data Display
Typography
Disclosure
Media and Icons
Others
If you are starting a new project, please try gluestack-ui for better performance and new design.
Skeleton
Skeleton showcases the loading state of a component.
Show Code
Playground
Examples
Usage
Playground
Color
Playground
Composition
Playground
IsLoaded
Playground
Props
Skeleton
fadeDuration
The fadeIn duration in seconds
Type: number
isLoaded
If true, it'll render its children
Type: boolean
speed
The animation speed in seconds
Type: number
startColor
The color at the animation start
Type: ResponsiveValue<"gray.300" | "primary.500" | "gray.500" | "contrastThreshold" | "white" | "black" | "lightText" | "darkText" | "primary.50" | "primary.100" | "primary.200" | "primary.300" | ... 333 more ... | (string & {})>
endColor
The color at the animation end
Type: ResponsiveValue<"gray.300" | "primary.500" | "gray.500" | "contrastThreshold" | "white" | "black" | "lightText" | "darkText" | "primary.50" | "primary.100" | "primary.200" | "primary.300" | ... 333 more ... | (string & {})>
size
Sizes for Skeleton
Type: ResponsiveValue<number | "full" | "sm" | "6" | "2xs" | "8" | "xs" | "12" | "md" | "16" | "xl" | "24" | "32" | "2" | "0.5" | "4" | "3" | "lg" | "1" | "2xl" | "10" | "20" | "64" | "0" | "px" | (string & {}) | ... 28 more ... | "5/6">
SkeletonText
fadeDuration
The fadeIn duration in seconds
Type: number
isLoaded
If true, it'll render its children
Type: boolean
speed
The animation speed in seconds
Type: number
startColor
The color at the animation start
Type: ResponsiveValue<"gray.300" | "primary.500" | "gray.500" | "contrastThreshold" | "white" | "black" | "lightText" | "darkText" | "primary.50" | "primary.100" | "primary.200" | "primary.300" | ... 333 more ... | (string & {})>
endColor
The color at the animation end
Type: ResponsiveValue<"gray.300" | "primary.500" | "gray.500" | "contrastThreshold" | "white" | "black" | "lightText" | "darkText" | "primary.50" | "primary.100" | "primary.200" | "primary.300" | ... 333 more ... | (string & {})>
lines
No of Lines in text
Type: number
_line
Stying for each line
Type: InterfaceSkeletonProps
Styling
NativeBase ships with a default theme for each component. Check out the default theme of the skeleton.
Info: We can easily extend the skeleton component theme using extendTheme function as described in the documentation .
Nativebase logo
MadeWithNativeBase
Gluestack logo
gluestack-ui