Skip to content

Commit 255ff3e

Browse files
committed
fix(native): set the right initial value of the animation instance
1 parent 513cba0 commit 255ff3e

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

src/native/Svg.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class NativeSvg extends Component<IContentLoaderProps> {
2323
style: {},
2424
}
2525

26-
animatedValue = new Animated.Value(0)
26+
animatedValue = new Animated.Value(-1)
2727

2828
fixedId = this.props.uniqueKey || uid()
2929

src/native/__tests__/__snapshots__/snapshots.test.tsx.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ exports[`ContentLoader snapshots renders correctly the basic version 1`] = `
6262
</ClipPath>
6363
<LinearGradient
6464
id="snapshots-diff"
65-
x1="-33.33333333333334%"
66-
x2="66.66666666666666%"
65+
x1="-100%"
66+
x2="0%"
6767
y1={0}
6868
y2={0}
6969
>
@@ -146,8 +146,8 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined 1`] = `
146146
</ClipPath>
147147
<LinearGradient
148148
id="snapshots-diff"
149-
x1="-33.33333333333334%"
150-
x2="66.66666666666666%"
149+
x1="-100%"
150+
x2="0%"
151151
y1={0}
152152
y2={0}
153153
>
@@ -230,8 +230,8 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined and size
230230
</ClipPath>
231231
<LinearGradient
232232
id="snapshots-diff"
233-
x1="-33.33333333333334%"
234-
x2="66.66666666666666%"
233+
x1="-100%"
234+
x2="0%"
235235
y1={0}
236236
y2={0}
237237
>
@@ -314,8 +314,8 @@ exports[`ContentLoader snapshots renders correctly with viewBox empty 1`] = `
314314
</ClipPath>
315315
<LinearGradient
316316
id="snapshots-diff"
317-
x1="-33.33333333333334%"
318-
x2="66.66666666666666%"
317+
x1="-100%"
318+
x2="0%"
319319
y1={0}
320320
y2={0}
321321
>

src/native/__tests__/presets/__snapshots__/BulletListStyle.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ exports[`BulletListStyle renders correctly 1`] = `
7474
</ClipPath>
7575
<LinearGradient
7676
id="BulletListStyle-diff"
77-
x1="-33.33333333333334%"
78-
x2="66.66666666666666%"
77+
x1="-100%"
78+
x2="0%"
7979
y1={0}
8080
y2={0}
8181
>

src/native/__tests__/presets/__snapshots__/CodeStyle.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ exports[`CodeStyle renders correctly 1`] = `
7878
</ClipPath>
7979
<LinearGradient
8080
id="CodeStyle-diff"
81-
x1="-33.33333333333334%"
82-
x2="66.66666666666666%"
81+
x1="-100%"
82+
x2="0%"
8383
y1={0}
8484
y2={0}
8585
>

src/native/__tests__/presets/__snapshots__/FacebookStyle.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ exports[`FacebookStyle renders correctly 1`] = `
6262
</ClipPath>
6363
<LinearGradient
6464
id="FacebookStyle-diff"
65-
x1="-33.33333333333334%"
66-
x2="66.66666666666666%"
65+
x1="-100%"
66+
x2="0%"
6767
y1={0}
6868
y2={0}
6969
>

src/native/__tests__/presets/__snapshots__/InstagramStyle.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ exports[`InstagramStyle renders correctly 1`] = `
5151
</ClipPath>
5252
<LinearGradient
5353
id="InstagramStyle-diff"
54-
x1="-33.33333333333334%"
55-
x2="66.66666666666666%"
54+
x1="-100%"
55+
x2="0%"
5656
y1={0}
5757
y2={0}
5858
>

src/native/__tests__/presets/__snapshots__/ListStyle.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ exports[`ListStyle renders correctly 1`] = `
7070
</ClipPath>
7171
<LinearGradient
7272
id="ListStyle-diff"
73-
x1="-33.33333333333334%"
74-
x2="66.66666666666666%"
73+
x1="-100%"
74+
x2="0%"
7575
y1={0}
7676
y2={0}
7777
>

0 commit comments

Comments
 (0)