mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-01-12 22:50:00 +08:00
Merge pull request #222 from danilowoz/fix/native-inital-value
fix(native): set the right initial value of the animation instance
This commit is contained in:
@@ -23,7 +23,7 @@ class NativeSvg extends Component<IContentLoaderProps> {
|
||||
style: {},
|
||||
}
|
||||
|
||||
animatedValue = new Animated.Value(0)
|
||||
animatedValue = new Animated.Value(-1)
|
||||
|
||||
fixedId = this.props.uniqueKey || uid()
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@ exports[`ContentLoader snapshots renders correctly the basic version 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="snapshots-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
@@ -146,8 +146,8 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="snapshots-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
@@ -230,8 +230,8 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined and size
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="snapshots-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
@@ -314,8 +314,8 @@ exports[`ContentLoader snapshots renders correctly with viewBox empty 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="snapshots-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
|
||||
@@ -74,8 +74,8 @@ exports[`BulletListStyle renders correctly 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="BulletListStyle-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
|
||||
@@ -78,8 +78,8 @@ exports[`CodeStyle renders correctly 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="CodeStyle-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
|
||||
@@ -62,8 +62,8 @@ exports[`FacebookStyle renders correctly 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="FacebookStyle-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
|
||||
@@ -51,8 +51,8 @@ exports[`InstagramStyle renders correctly 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="InstagramStyle-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
|
||||
@@ -70,8 +70,8 @@ exports[`ListStyle renders correctly 1`] = `
|
||||
</ClipPath>
|
||||
<LinearGradient
|
||||
id="ListStyle-diff"
|
||||
x1="-33.33333333333334%"
|
||||
x2="66.66666666666666%"
|
||||
x1="-100%"
|
||||
x2="0%"
|
||||
y1={0}
|
||||
y2={0}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user