React Native
Styling
Skel UI provides styling through Skel Provider and Component props in react-native.
Skel UI Provider
Overrides the skeleton's default colors and border-radius via Skel.Provider.
Component props
The width, height and radius of the skeleton for each element can be modified with three special props.
| Name | Type | Description |
|---|---|---|
sw | string | Width of the skeleton |
sh | string | Height of the skeleton |
sr | number | Overrides the default skeleton border-radius |
By default, the border-radius defined in style will be applied to the skeleton. Therefore, avoid setting sr unless you want a different border-radius for the skeleton.
Text based on numberOfLines
Skel UI listen to the numberOfLines prop in Text component.