From e3b9756942e9c1ca2d6a64f09c22bd41ecdd3c4f Mon Sep 17 00:00:00 2001 From: Maksym Komarychev Date: Fri, 13 Jul 2018 10:01:48 +0300 Subject: [PATCH] Troubleshooting for cocoapods & react-native-link --- README.md | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dfb1eafa..3e1a6307 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,27 @@ react-native link react-native-svg ``` - A bug in react-native currently links the tvOS library into the iOS project as well. + * A bug in react-native currently links the tvOS library into the iOS project as well. - Until the fix is released: - https://github.com/facebook/react-native/issues/13783 - https://github.com/facebook/react-native/commit/a63fd378a47173cc9f750e9980f18dc12dd7ea51 + Until the fix is released: + https://github.com/facebook/react-native/issues/13783 + https://github.com/facebook/react-native/commit/a63fd378a47173cc9f750e9980f18dc12dd7ea51 + + Follow the instructions here: https://github.com/react-native-community/react-native-svg/issues/544 + + * If `cocoapods` is used and if error `RNSVGImage.m:12:9: 'React/RCTImageLoader.h' file not found` occurs: + + Add the following entry in Podfile: + + ```ruby + pod 'React', :path => '../node_modules/react-native', :subspecs => [ + [...] + 'RCTImage', # !!!!! + ] + ``` + + and run `pod install` from `ios` folder - Follow the instructions here: https://github.com/react-native-community/react-native-svg/issues/544 #### Manual