Skip to content

Commit d5d44dd

Browse files
committed
expose update function
1 parent 31200a7 commit d5d44dd

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/targets/konva/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as konva from 'react-konva'
22
import animated from '../../animated/createAnimatedComponent'
33
import * as Globals from '../../animated/Globals'
4+
import { update } from '../../animated/FrameLoop'
45
import { interpolate } from '../../interpolate'
56
import colorNames from '../../shared/colors'
67
import { config } from '../../shared/constants'
@@ -73,6 +74,7 @@ const extendedAnimated = apply(konvaElements)
7374
export {
7475
apply,
7576
config,
77+
update,
7678
extendedAnimated as animated,
7779
extendedAnimated as a,
7880
interpolate,

src/targets/native/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { StyleSheet, View } from 'react-native'
22
import AnimatedStyle from '../../animated/AnimatedStyle'
33
import animated from '../../animated/createAnimatedComponent'
44
import * as Globals from '../../animated/Globals'
5+
import { update } from '../../animated/FrameLoop'
56
import { interpolate } from '../../interpolate'
67
import colorNames from '../../shared/colors'
78
import { config } from '../../shared/constants'
@@ -38,6 +39,7 @@ const apply = merge(animated)
3839
export {
3940
apply,
4041
config,
42+
update,
4143
animated,
4244
animated as a,
4345
interpolate,

src/targets/universal/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import animated from '../../animated/createAnimatedComponent'
22
import createInterpolator from '../../animated/createInterpolator'
33
import * as Globals from '../../animated/Globals'
4+
import { update } from '../../animated/FrameLoop'
45
import { interpolate } from '../../interpolate'
56
import { config } from '../../shared/constants'
67
import { InterpolationConfig } from '../../types/interpolation'
@@ -47,6 +48,7 @@ const Interpolation = {
4748
export {
4849
apply,
4950
config,
51+
update,
5052
animated,
5153
animated as a,
5254
interpolate,

src/targets/web/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import animated from '../../animated/createAnimatedComponent'
22
import * as Globals from '../../animated/Globals'
3+
import { update } from '../../animated/FrameLoop'
34
import { interpolate } from '../../interpolate'
45
import { config } from '../../shared/constants'
56
import {
@@ -163,6 +164,7 @@ const extendedAnimated = apply(domElements)
163164
export {
164165
apply,
165166
config,
167+
update,
166168
extendedAnimated as animated,
167169
extendedAnimated as a,
168170
interpolate,

0 commit comments

Comments
 (0)