Skip to content

Commit 982d760

Browse files
Merge pull request #12 from SimformSolutionsPvtLtd/develop
Release v1.0.2
2 parents 78acc22 + 1924c0b commit 982d760

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Dynamic Shimmer - Simform](./assets/react-native-dynamic-shimmer.gif)
1+
![Dynamic Shimmer - Simform](./assets/banner-of-dynamic-shimmer.gif)
22

33
# react-native-dynamic-shimmer
44

@@ -18,8 +18,8 @@ The Shimmer component can be used with any view, including text, images, and cus
1818

1919
<table>
2020
<tr>
21-
<td><a href="https://github.com/SimformSolutionsPvtLtd/react-native-dynamic-shimmer"><img width="300" alt="SimformSolutions" src="./assets/basic_example.gif"></a></td>
22-
<td><a href="https://github.com/SimformSolutionsPvtLtd/react-native-dynamic-shimmer"><img width="300" alt="SimformSolutions" src="./assets/faltlist_example.gif"></a></td>
21+
<td><a href="https://github.com/SimformSolutionsPvtLtd/react-native-dynamic-shimmer"><img width="300" alt="SimformSolutions" src="./assets/preview1.gif"></a></td>
22+
<td><a href="https://github.com/SimformSolutionsPvtLtd/react-native-dynamic-shimmer"><img width="300" alt="SimformSolutions" src="./assets/preview2.gif"></a></td>
2323
</tr>
2424
</table>
2525

@@ -174,18 +174,17 @@ export default App;
174174

175175
<table>
176176
<tr>
177-
<td><a href="https://github.com/SimformSolutionsPvtLtd/react-native-dynamic-shimmer"><img width="300" alt="SimformSolutions" src="./assets/basic_example.gif"></a></td>
177+
<td><a href="https://github.com/SimformSolutionsPvtLtd/react-native-dynamic-shimmer"><img width="300" alt="SimformSolutions" src="./assets/preview1.gif"></a></td>
178178
</tr>
179179
</table>
180180

181181
### Properties
182182

183183
| **Props** | **Default** | **Type** | **Description** |
184184
| ------------ | :---------: | :----------------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
185-
| **children** | - | React.ReactNode | The child components that will be rendered inside the Shimmer component. When loading is true, these children will be replaced by the shimmer effect. When loading is false, the children are displayed normally. |
186185
| **loading** | true | boolean | This prop controls whether the Shimmer component displays the loading shimmer effect. If loading is true, the shimmer effect will be visible; otherwise, the actual content (wrapped by the Shimmer component) will be displayed. |
187-
| **shimmerElement** | - | React.ReactElement | A custom gradient element used to create the shimmer effect. This allows flexibility to provide different gradient designs for the shimmer animation. |
188-
| **duration** | 1000 | number | Specifies the duration of the shimmer animation in milliseconds. This value determines how long the shimmer effect will run, allowing you to control the speed and smoothness of the shimmer transition. |
186+
| shimmerElement | - | React.ReactElement | A custom gradient element used to create the shimmer effect. This allows flexibility to provide different gradient designs for the shimmer animation. |
187+
| duration | 1000 | number | Specifies the duration of the shimmer animation in milliseconds. This value determines how long the shimmer effect will run, allowing you to control the speed and smoothness of the shimmer transition. |
189188

190189
---
191190

File renamed without changes.

assets/basic_example.gif

-95.7 KB
Binary file not shown.

assets/faltlist_example.gif

-134 KB
Binary file not shown.

assets/preview1.gif

99.3 KB
Loading

assets/preview2.gif

182 KB
Loading

assets/scrollview_example.gif

-197 KB
Binary file not shown.

example/src/components/List/List.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ const List = (): React.JSX.Element => {
3535
};
3636

3737
return (
38-
<Shimmer loading={true} shimmerElement={<ShimmerElement />} duration={2450}>
38+
<Shimmer
39+
loading={isLoading}
40+
shimmerElement={<ShimmerElement />}
41+
duration={2450}>
3942
<FlatList
4043
data={sampleDataForList}
4144
renderItem={renderItem}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-dynamic-shimmer",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Shimmer component wrapper for React Native apps",
55
"main": "lib/index",
66
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)