null is not an object (evaluating 'RNFetchBlob.DocumentDir')

或 Cannot read property ‘DocumentDir’ of undefined

1、npm install react-native-fetch-blob –save
2、react-native link react-native-fetch-blob –save

link完之后在ios工程目录Library下没找到。。

手动添加
1、 addFilesTo 选择node_modules->react-native-fetch-blob->ios->RNFetchBlob.xcodeproj
2、target->Linked Frameworks And Librarys 点击“+” 找到libRNFetchBlob
完成后clean 、run

    原文作者:ablac
    原文地址: https://www.jianshu.com/p/77704de8eb20
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞