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:
Danilo Woznica
2020-10-19 19:24:59 +01:00
committed by GitHub
7 changed files with 19 additions and 19 deletions

View File

@@ -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()

View File

@@ -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}
>

View File

@@ -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}
>

View File

@@ -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}
>

View File

@@ -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}
>

View File

@@ -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}
>

View File

@@ -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}
>