我怎样才能纠正我的错误。我需要从我的资产文件夹显示一个pdf。我正在使用世博,反应本地,反应-原生-pdf
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发布于 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
https://stackoverflow.com/questions/49850222
复制相似问题