-
Hi, was anybody successfull running react-spring as part of ink? I was able to import react-spring into an app bootstrapped via create ink app, which looks basically like this: "use strict"
const React = require("react")
const { Text, Box } = require("ink")
const { animated, useSpring } = require("react-spring/universal.cjs")
const App = () => {
// const props = useSpring({ number: 1, from: { number: 0 } })
const AnimatedText = animated(Text)
return (
<Box>
<Text>works as aspected</Text>
<AnimatedText>renders just fine</AnimatedText>
{/*<AnimatedText>{props.number}</AnimatedText>*/}
</Box>
)
}
module.exports = App and it works just fine. When the Does somebody manage to get it working? |
Beta Was this translation helpful? Give feedback.
Answered by
mdugue
Sep 22, 2020
Replies: 1 comment 1 reply
-
damned. Rereading my comment I found the answer: a requestAnimationFrame Polyfill is needed. 🙈🤦♂️ |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mdugue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
damned. Rereading my comment I found the answer: a requestAnimationFrame Polyfill is needed. 🙈🤦♂️
It works! 🎉
I'll leave the comment here for any further people stumbling upon it.