Skip to content

Commit d11d3a1

Browse files
committed
Documentation updations
1 parent b0d5474 commit d11d3a1

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
🟢 Skeleton Loading Component for Expo and React Native powered apps
1212

1313
<a href="https://twitter.com/_mmusaib" target="_blank"></a>
14-
<img src="https://i.imgur.com/sLjgFRR.gif" width="400" />
14+
<img src="https://i.imgur.com/toxEFWe.png" width="500" />
1515
</div>
1616

1717

@@ -49,6 +49,23 @@ OR
4949
$ yarn add react-native-skeleton-loading
5050
```
5151

52+
# Setup
53+
This package is based on react-natve-reanimated 3 so according to their documentation,
54+
you need to initialize that in babel.config.js. To do that stop the metro bundler and
55+
then add following line of code to the return object of babel.config.js
56+
57+
```js
58+
plugins: ['react-native-reanimated/plugin']
59+
```
60+
61+
After adding the line of code, start the bundler or project with --clear tag like,
62+
63+
```sh
64+
npx expo start --clear
65+
```
66+
This will clear the bundler cache and you are ready to go.
67+
68+
5269

5370
# 😎 Displaying the skeleton loading
5471
All you need is to just import the skeleton loading component, and in between the

0 commit comments

Comments
 (0)