Quería cambiar el valor de los archivos json lottie a un nuevo valor usando la API. Este es el código que se encontró para esto, pero no funcionó. Gracias por cualquier ayuda.
import LottieWebParser from 'lottie-web-parser'; import animationData from './data.js'; let colorInfo = LottieWebParser.parseColors(animationData); LottieWebParser.replaceColor([255, 0, 0, 1], colorInfo[0].path, animationData);