Lottie 动画 - 颜色未在反应本机应用程序上显示

Nom*_*Ali 5 react-native lottie

我在我的 React 本机应用程序中添加了一个 Lottie 加载动画,该动画到目前为止正在运行,但不知何故颜色没有显示,而仅显示白色动画。

这是代码。

<View style={styles.lottieLoadingWrapper}>
  <LottieView
    style={styles.lottieLoading}
    source={require('../assets/loading-2.json')}
    autoPlay
    loop
  />
</View>
Run Code Online (Sandbox Code Playgroud)

我没有在样式表中做任何事情。我尝试过多种动画,但都是简单的白色。我在这里犯的错误可能是什么?

更新:以下是样式代码

lottieLoadingWrapper: {
  width: 50,
  height: 50,
  justifyContent: 'center',
  alignItems: 'center',
  backgroundColor: 'yellow',
  alignSelf: 'center',
},
lottieLoading:{
  width: 50,
  height: 50,
  backgroundColor: 'rgba(120, 120, 120, 0.66)',
  justifyContent: 'center',
  alignItems: 'center',
}
Run Code Online (Sandbox Code Playgroud)

以下是我正在使用的动画

洛蒂动画链接

Shi*_*m 0 0

<View style={styles.lottieLoadingWrapper}>
  <LottieView
    style={styles.lottieLoading}
    source={require('../assets/loading-2.json')}
    autoPlay
    loop
  />
</View> 


Please Change the Color in JSON file, Find "sc":"#ffffff" and 
Replace with your color
Run Code Online (Sandbox Code Playgroud)