From 68cc7f8e1a9275c33b5a0dc8a0d860f69cf29bab Mon Sep 17 00:00:00 2001 From: Caly Date: Mon, 6 Aug 2018 10:25:28 +1000 Subject: [PATCH] Fix xcode imports/header search paths for RN 0.35 --- ReactNativeViewPDF.xcodeproj/project.pbxproj | 2 ++ ReactNativeViewPDF/PDFView.h | 2 +- ReactNativeViewPDF/PDFViewManager.h | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ReactNativeViewPDF.xcodeproj/project.pbxproj b/ReactNativeViewPDF.xcodeproj/project.pbxproj index 9ccec5f..15bf930 100644 --- a/ReactNativeViewPDF.xcodeproj/project.pbxproj +++ b/ReactNativeViewPDF.xcodeproj/project.pbxproj @@ -188,6 +188,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "$(SRCROOT)/../react-native/react/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; @@ -237,6 +238,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "$(SRCROOT)/../react-native/react/**"; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; diff --git a/ReactNativeViewPDF/PDFView.h b/ReactNativeViewPDF/PDFView.h index d0f1541..284097a 100644 --- a/ReactNativeViewPDF/PDFView.h +++ b/ReactNativeViewPDF/PDFView.h @@ -1,4 +1,4 @@ -#import +#import "RCTView.h" #import "PDFConstants.h" #import diff --git a/ReactNativeViewPDF/PDFViewManager.h b/ReactNativeViewPDF/PDFViewManager.h index c477728..36588f1 100644 --- a/ReactNativeViewPDF/PDFViewManager.h +++ b/ReactNativeViewPDF/PDFViewManager.h @@ -1,5 +1,5 @@ -#import -#import +#import "RCTViewManager.h" +#import "RCTConvert.h" #import "PDFView.h" @interface PDFViewManager : RCTViewManager