原生动画模块不可用 - 本机反应

时间:2022-03-03 04:56:56

I'm using react native for my project and strangely I'm getting error like shown in below image. I don't understand what's this error. Can someone help to solve this issue?

我正在使用本机响应我的项目,奇怪的是我收到的错误如下图所示。我不明白这是什么错误。有人可以帮忙解决这个问题吗?

原生动画模块不可用 - 本机反应

1 个解决方案

#1


2  

Added RCTAnimation to podfile. It worked!

将RCTAnimation添加到podfile。有效!

pod 'React', :path => react_native_path, :subspecs => [

    'Core',
    'RCTText',
    'RCTImage',
    'DevSupport',
    'BatchedBridge',
    'RCTAnimation',
    'RCTWebSocket', # needed for debugging
    # Add any other subspecs you want to use in your project
    ]

#1


2  

Added RCTAnimation to podfile. It worked!

将RCTAnimation添加到podfile。有效!

pod 'React', :path => react_native_path, :subspecs => [

    'Core',
    'RCTText',
    'RCTImage',
    'DevSupport',
    'BatchedBridge',
    'RCTAnimation',
    'RCTWebSocket', # needed for debugging
    # Add any other subspecs you want to use in your project
    ]