如何在本机ART对象上使用setNativeProps()?

Mic*_*ael 5 graphics react-native

我想用setNativeProps()一个<Surface>这样的:

render = () => (
  <Surface
    ref = {ref => this.surfaceRef = ref}
  />
)

moveSurface (x,y) => {
  this.surfaceRef.setNativeProps({
    transform: {[translateX: x}, {translateY: y}]
  })
}
Run Code Online (Sandbox Code Playgroud)

由于任何ART组件似乎都未实现setNativeProps,因此此方法不起作用。我认为至少Surface可以实现此功能,因为它可以扩展Component

背景:我成功完成了react-native-svg的操作(类似)。但是我需要更多的fps。ART比react-native-svg的性能要好一些,因此我想看看ART在setNativeProps上的表现如何,并将其与react-native-svg进行比较。