"Animate" is undefined?
Closed this issue · 3 comments
ethanbond commented
Hello – I might be missing something obvious here, but it looks like Animate
isn't exported from main?
Installed via yarn add redux-time
, I'm using ES6 with Typescript
import { Animate } from "redux-time";
const simpleAnimation = Animate({
path: "/progress",
start_state: 0,
end_state: 100,
duration: 2000,
});
export const startAnimation = () =>
(dispatch: Dispatch<IAppState>, getState: () => IAppState) => {
dispatch({type: 'ANIMATE', animation: simpleAnimation});
};
If I import * as ANIMATE from "redux-time"; console.log(ANIMATE)
first, I see:
MiltonLn commented
Hello @ethanbond, can you try importing Animate
from /node/animations
?
import { Animate } from 'redux-time/node/animations'
Have a nice day!