Skip to content

Commit

Permalink
bump version 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chramos committed Jul 16, 2021
1 parent 254cd64 commit 418442b
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 30 deletions.
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ SPEC CHECKSUMS:
BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
FBReactNativeSpec: 7c2f4c389452b1e3ddcfa091ec470104324ea0ef
FBReactNativeSpec: 1da5510d9f88b3a17aeb9989d73790a545f882bc
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c
RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728
Expand Down
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"@react-native-masked-view/masked-view": "^0.2.3",
"react": "17.0.1",
"react-native": "0.64.2",
"react-native-linear-gradient": "^2.5.6"
"react-native-linear-gradient": "^2.5.6",
"react-native-skeleton-placeholder": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.6.2",
Expand Down
55 changes: 32 additions & 23 deletions example/src/FirstExample.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
import React from 'react';
import {View} from 'react-native';
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';

const FirstExample = ({}) => (
<View style={{marginHorizontal: -20}}>
<SkeletonPlaceholder>
<SkeletonPlaceholder.Item width="100%" height={140} />
<SkeletonPlaceholder.Item
width={100}
height={100}
borderRadius={100}
borderWidth={5}
borderColor="white"
alignSelf="center"
position="relative"
top={-50}
/>
<SkeletonPlaceholder.Item width={120} height={20} alignSelf="center" />
<SkeletonPlaceholder.Item
width={240}
height={20}
alignSelf="center"
marginTop={12}
/>
</SkeletonPlaceholder>
</View>
<SkeletonPlaceholder>
<SkeletonPlaceholder.Item
width={100}
height={100}
borderRadius={100}
borderWidth={5}
borderColor="white"
alignSelf="center"
position="relative"
/>
<SkeletonPlaceholder.Item
width={120}
height={20}
alignSelf="center"
marginTop={12}
borderRadius={4}
/>
<SkeletonPlaceholder.Item
width={240}
height={20}
alignSelf="center"
marginTop={12}
borderRadius={4}
/>
<SkeletonPlaceholder.Item
width={240}
height={20}
alignSelf="center"
marginTop={12}
borderRadius={4}
/>
</SkeletonPlaceholder>
);

FirstExample.propTypes = {};
Expand Down
8 changes: 4 additions & 4 deletions example/src/SecondExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ const SecondExample = ({}) =>
<View key={index} style={{marginBottom: 12}}>
<SkeletonPlaceholder>
<SkeletonPlaceholder.Item flexDirection="row">
<SkeletonPlaceholder.Item width={100} height={100} borderRadius={6} />
<SkeletonPlaceholder.Item width={100} height={100} borderRadius={4} />
<SkeletonPlaceholder.Item
flex={1}
justifyContent={'space-between'}
marginLeft={12}>
<SkeletonPlaceholder.Item
width="50%"
height={20}
borderRadius={6}
borderRadius={4}
/>
<SkeletonPlaceholder.Item
width="30%"
height={20}
borderRadius={6}
borderRadius={4}
/>
<SkeletonPlaceholder.Item
width="80%"
height={20}
borderRadius={6}
borderRadius={4}
/>
</SkeletonPlaceholder.Item>
</SkeletonPlaceholder.Item>
Expand Down
5 changes: 5 additions & 0 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5374,6 +5374,11 @@ react-native-linear-gradient@^2.5.6:
resolved "https://registry.yarnpkg.com/react-native-linear-gradient/-/react-native-linear-gradient-2.5.6.tgz#96215cbc5ec7a01247a20890888aa75b834d44a0"
integrity sha512-HDwEaXcQIuXXCV70O+bK1rizFong3wj+5Q/jSyifKFLg0VWF95xh8XQgfzXwtq0NggL9vNjPKXa016KuFu+VFg==

react-native-skeleton-placeholder@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/react-native-skeleton-placeholder/-/react-native-skeleton-placeholder-5.0.0.tgz#899fca447c2f0b81f98566e350e792157a3c9df9"
integrity sha512-7sdG+Y2ENEVcxFC9XlpCgHy59XKkxaUyVqDwuAb66hvl7lwFr25uA5kHJ+JuDJ84ptVil5UEowW/2avwhsfoYg==

react-native@0.64.2:
version "0.64.2"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.64.2.tgz#233b6ed84ac4749c8bc2a2d6cf63577a1c437d18"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-skeleton-placeholder",
"version": "4.0.0",
"version": "5.0.0",
"description": "SkeletonPlaceholder is a React Native library to easily create an amazing loading effect.",
"main": "lib/SkeletonPlaceholder.js",
"scripts": {
Expand Down

0 comments on commit 418442b

Please sign in to comment.