答案 0 :(得分:2)
为podfile添加了RCTAnimation。它奏效了!
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
]