React.AbstractComponent 是干嘛的?

在react-native里面看到以下代码:

Libraries\Image\Image.android.js

module.exports = ((Image: any): React.AbstractComponent<
  ImagePropsType,
  | React.ElementRef<typeof TextInlineImageNativeComponent>
  | React.ElementRef<typeof ImageViewNativeComponent>,
> &
  ImageComponentStatics);

有点不理解这段代码是什么意思

能帮忙翻译以下吗?

1.React.AbstractComponent是干嘛的
2.这个&起到什么作用?

阅读 2.5k
1 个回答

1:
image.png

2:
image.png

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题