Skip to content

fix:修复readFile方法读取文件以ascii码返回结果是buffer而不是数组的问题 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

WN0904
Copy link

@WN0904 WN0904 commented Sep 14, 2024

Summary

请解释此次更改的 动机,以下是一些帮助您的要点:

Test Plan

 const readFile = async () => {
    ReactNativeBlobUtil.fs.readFile(text + "/test.txt", "ascii").then(res => {
        console.log(res)
    }
    )
  }

Checklist

  • 已经在真机设备或模拟器上测试通过
  • 已经与 Android 或 iOS 平台做过效果/功能对比
  • 已经添加了对应 API 的测试用例(如需要)
  • 已经更新了文档(如需要)
  • 更新了 JS/TS 代码 (如有)

@WN0904 WN0904 force-pushed the read branch 4 times, most recently from c7f2f8b to b8ae355 Compare September 14, 2024 06:43
@xbh0902 xbh0902 merged commit dacacd1 into react-native-oh-library:sig Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

readFile方法读取文件以ascii码返回结果是buffer而不是数组
2 participants