已关闭
鸿蒙侧未适配原库 iOS 专用 API / 事件 #27
linsanjiu创建于  8月29日关闭于  8月31日
linsanjiu
linsanjiu
8月29日 创建

当前 @react-native-ohos/react-native-doc-viewer 已支持:

  • openDoc
  • openDocBinaryinUrl
  • openDocb64

以下原库 iOS 能力尚未在鸿蒙实现:

方法:

  1. playMovie — 播放 MP4
  2. testModule — iOS 调试接口
  3. statusProgress — 查询下载进度
  4. showAlert — 弹出 Alert

事件:

  1. RNDownloaderProgress — 下载进度
  2. DoneButtonEvent — 关闭文档预览
  3. CancelEvent — Alert 取消
  4. OKEvent — Alert 确认

对照:上游 ios/RNDocViewer.m(RCT_EXPORT_METHOD / supportedEvents)
鸿蒙实现:harmony/doc-viewer/src/main/ets/turborModules.ts、src/NativeRNCDocViewer.ts

likedislike
linsanjiulinsanjiu
8月29日 关联了pull request:docs:modify document scanning issues,pre-release:@react-native-ohos/react-native-doc-viewer@2.8.2-rc.1
openharmony_ciopenharmony_ci成员
8月31日 关闭了 issue