首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >react本机-获取-blob链接失败

react本机-获取-blob链接失败
EN

Stack Overflow用户
提问于 2018-04-16 05:37:04
回答 1查看 2.2K关注 0票数 0

我怎样才能纠正我的错误。我需要从我的资产文件夹显示一个pdf。我正在使用世博,反应本地,反应-原生-pdf

代码语言:javascript
复制
Scanning folders for symlinks in C:\Users\kjdelacruz\mobile\cdo-mobile-organizer\node_modules (31ms)
RNFetchBlob checking app version ..
RNFetchBlob detected app version => 6
Add Android permissions => false
react-native-fetch-blob link FAILED
Could not automatically link package :TypeError: path must be a string or Buffer
    at Object.fs.readFile (fs.js:358:11)
    at Object.<anonymous> (C:\Users\kjdelacruz\mobile\cdo-mobile-organizer\node_modules\react-native-fetch-blob\scripts\prelink.js:29:8)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3please follow the instructions to manually link the library : https://github.com/wkh237/react-native-fetch-blob/wiki/Manually-Link-Package

rnpm-install info Linking assets to ios project
rnpm-install ERR! Something went wrong while linking. Error: Cannot read property 'pbxprojPath' of null
Please file an issue here: https://github.com/facebook/react-native/issues

Cannot read property 'pbxprojPath' of null
EN

回答 1

Stack Overflow用户

发布于 2018-10-04 19:08:17

很明显,rn-fetch-blob和世博会不兼容。我以前曾与博览和rn-fetch-blob一起处理过这个问题。

“它不适用于世博,因为世博会不支持本地模块链接。就像你说过的,要想运行react-本机链接--本地--获取--blob,就必须从世博会中分离出来。”

https://docs.expo.io/versions/latest/guides/detach.html

您需要使用XCode才能使其正常工作。

有几条线在讨论。不过,世博没有解决办法。

https://github.com/joltup/rn-fetch-blob/issues/97

https://github.com/wkh237/react-native-fetch-blob/issues/371

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49850222

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档