Skip to content

Commit 794863f

Browse files
authored
Update README.md
1 parent 08042ae commit 794863f

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ yarn add react-native-auto-skeleton
4747

4848
## Usage
4949

50-
> ⚠️ **Warning:** Warning: On Android, automatic detection of a view’s border-radius is not supported. You can override it manually via the defaultRadius prop.
50+
> ⚠️ **Warning:** On Android, automatic detection of a view’s border-radius is not supported. You can override it manually via the defaultRadius prop.
5151
5252
Here's a quick example to get started:
5353

@@ -124,14 +124,13 @@ export default function App() {
124124
```
125125

126126
## API
127-
128-
| Prop | Type | Default | Description |
129-
|---------------------------|---------|---------|-----------------------------------------------------------------------------------------------|
130-
| `isLoading` | boolean || Enables or disables the skeleton state. When `true`, skeleton placeholders will be shown. |
131-
| `shimmerSpeed` | Float | `1.0` | Duration of one shimmer animation cycle **in seconds**. Lower values = faster shimmer. |
132-
| `shimmerBackgroundColor` | string | `#C7C7CC` | Background color of skeleton shapes |
133-
| `gradientColors` | [string,string] | [`#C7C7CC`,'#ffffff'] | Gradient colors for the skeleton gradient.
134-
| `defaultRadius` | Float | `4` | Default corner radius for skeleton elements that don't have a defined `borderRadius`. |
127+
| Prop | type | Description |
128+
|---|---|---|
129+
| **isLoading** | boolean | Enables or disables the skeleton state|
130+
| **shimmerSpeed** | number | Duration of one shimmer animation cycle in seconds. Lower values = faster shimmer |
131+
| **shimmerBackgroundColor** | string | Background color of skeleton shapes |
132+
| **gradientColors** | [string,string] | Gradient colors for the skeleton gradient |
133+
| **defaultRadius** | number | Default corner radius for skeleton elements that don't have a defined `borderRadius` | |
135134

136135
## Best Practices
137136

0 commit comments

Comments
 (0)