There are 2 quick steps to getting Moti setup in a Next.js app.
moti to transpile modules.
next.config.js file should look something like this:
yarn add raf
Then add this in
We're going to use
requestAnimationFrame with Reanimated web, so that polyfill makes it usable with server-side rendering frameworks.