You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ import SkeletonContent from 'react-native-skeleton-content';
41
41
-**Custom Layout** : You provide a prop `layout` to the component specifying the size of the bones (see the [Examples](#examples) section below). Herunder is the example with a custom layout. A key prop for each child is optionnal but highly recommended.
42
42
43
43
```jsx
44
-
exportdefaultfunctionPlacehoder() {
44
+
exportdefaultfunctionPlaceholder() {
45
45
return (
46
46
<SkeletonContent
47
47
containerStyle={{ flex:1, width:300 }}
@@ -61,7 +61,7 @@ export default function Placehoder() {
61
61
3. Then simply sync the prop `isLoading` to your state to show/hide the SkeletonContent when the assets/data are available to the user.
62
62
63
63
```jsx
64
-
exportdefaultfunctionPlacehoder () {
64
+
exportdefaultfunctionPlaceholder () {
65
65
const [loading, setLoading] =useState(true);
66
66
return (
67
67
<SkeletonContent
@@ -99,7 +99,7 @@ See the playground section to experiment :
99
99
</p>
100
100
101
101
```javascript
102
-
exportdefaultfunctionPlacehoder () {
102
+
exportdefaultfunctionPlaceholder () {
103
103
return (
104
104
<SkeletonContent
105
105
containerStyle={{flex:1, width:300}}
@@ -118,7 +118,7 @@ export default function Placehoder () {
118
118
</p>
119
119
120
120
```jsx
121
-
exportdefaultfunctionPlacehoder () {
121
+
exportdefaultfunctionPlaceholder () {
122
122
return (
123
123
<SkeletonContent
124
124
containerStyle={{flex:1, width:300}}
@@ -139,7 +139,7 @@ export default function Placehoder () {
0 commit comments