Skip to content

Commit

Permalink
[Headers] Add an umbrella header for the library
Browse files Browse the repository at this point in the history
The umbrella header allows projects that link React Native using CocoaPods to import it in standard fashion: `#import <React/React.h>`. Currently all of the headers are exported so that external projects can experiment.

Generated with:

    find React -name "*.h" | awk -F'/' '{print "#import <React/"$NF">"}' > React/React.h
  • Loading branch information
ide committed Mar 31, 2015
1 parent c8c4b41 commit 5130895
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
95 changes: 95 additions & 0 deletions React/React.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

#import <React/React/Base/RCTAssert.h>
#import <React/React/Base/RCTBridge.h>
#import <React/React/Base/RCTBridgeModule.h>
#import <React/React/Base/RCTCache.h>
#import <React/React/Base/RCTConvert.h>
#import <React/React/Base/RCTDevMenu.h>
#import <React/React/Base/RCTEventDispatcher.h>
#import <React/React/Base/RCTInvalidating.h>
#import <React/React/Base/RCTJavaScriptExecutor.h>
#import <React/React/Base/RCTJSMethodRegistrar.h>
#import <React/React/Base/RCTKeyCommands.h>
#import <React/React/Base/RCTLog.h>
#import <React/React/Base/RCTRedBox.h>
#import <React/React/Base/RCTRootView.h>
#import <React/React/Base/RCTSparseArray.h>
#import <React/React/Base/RCTTouchHandler.h>
#import <React/React/Base/RCTUtils.h>
#import <React/React/Executors/RCTContextExecutor.h>
#import <React/React/Executors/RCTWebViewExecutor.h>
#import <React/React/Layout/Layout.h>
#import <React/React/Modules/RCTAlertManager.h>
#import <React/React/Modules/RCTAppState.h>
#import <React/React/Modules/RCTAsyncLocalStorage.h>
#import <React/React/Modules/RCTExceptionsManager.h>
#import <React/React/Modules/RCTSourceCode.h>
#import <React/React/Modules/RCTStatusBarManager.h>
#import <React/React/Modules/RCTTiming.h>
#import <React/React/Modules/RCTUIManager.h>
#import <React/React/React.h>
#import <React/React/Views/RCTAnimationType.h>
#import <React/React/Views/RCTAutoInsetsProtocol.h>
#import <React/React/Views/RCTDatePickerManager.h>
#import <React/React/Views/RCTMap.h>
#import <React/React/Views/RCTMapManager.h>
#import <React/React/Views/RCTNavigator.h>
#import <React/React/Views/RCTNavigatorManager.h>
#import <React/React/Views/RCTNavItem.h>
#import <React/React/Views/RCTNavItemManager.h>
#import <React/React/Views/RCTPicker.h>
#import <React/React/Views/RCTPickerManager.h>
#import <React/React/Views/RCTPointerEvents.h>
#import <React/React/Views/RCTScrollableProtocol.h>
#import <React/React/Views/RCTScrollView.h>
#import <React/React/Views/RCTScrollViewManager.h>
#import <React/React/Views/RCTShadowView.h>
#import <React/React/Views/RCTSliderManager.h>
#import <React/React/Views/RCTSwitch.h>
#import <React/React/Views/RCTSwitchManager.h>
#import <React/React/Views/RCTTabBar.h>
#import <React/React/Views/RCTTabBarItem.h>
#import <React/React/Views/RCTTabBarItemManager.h>
#import <React/React/Views/RCTTabBarManager.h>
#import <React/React/Views/RCTTextField.h>
#import <React/React/Views/RCTTextFieldManager.h>
#import <React/React/Views/RCTUIActivityIndicatorViewManager.h>
#import <React/React/Views/RCTView.h>
#import <React/React/Views/RCTViewControllerProtocol.h>
#import <React/React/Views/RCTViewManager.h>
#import <React/React/Views/RCTViewNodeProtocol.h>
#import <React/React/Views/RCTWebView.h>
#import <React/React/Views/RCTWebViewManager.h>
#import <React/React/Views/RCTWrapperViewController.h>
#import <React/React/Views/UIView+React.h>
#import <React/Libraries/ActionSheetIOS/RCTActionSheetManager.h>
#import <React/Libraries/AdSupport/RCTAdSupport.h>
#import <React/Libraries/Animation/RCTAnimationManager.h>
#import <React/Libraries/Geolocation/RCTLocationObserver.h>
#import <React/Libraries/Image/RCTCameraRollManager.h>
#import <React/Libraries/Image/RCTGIFImage.h>
#import <React/Libraries/Image/RCTImageDownloader.h>
#import <React/Libraries/Image/RCTImageLoader.h>
#import <React/Libraries/Image/RCTNetworkImageView.h>
#import <React/Libraries/Image/RCTNetworkImageViewManager.h>
#import <React/Libraries/Image/RCTStaticImage.h>
#import <React/Libraries/Image/RCTStaticImageManager.h>
#import <React/Libraries/Network/RCTDataManager.h>
#import <React/Libraries/Network/RCTReachability.h>
#import <React/Libraries/PushNotificationIOS/RCTPushNotificationManager.h>
#import <React/Libraries/RCTWebSocketDebugger/RCTWebSocketExecutor.h>
#import <React/Libraries/RCTWebSocketDebugger/SRWebSocket.h>
#import <React/Libraries/Text/RCTRawTextManager.h>
#import <React/Libraries/Text/RCTShadowRawText.h>
#import <React/Libraries/Text/RCTShadowText.h>
#import <React/Libraries/Text/RCTText.h>
#import <React/Libraries/Text/RCTTextManager.h>
#import <React/Libraries/Vibration/RCTVibration.h>
2 changes: 2 additions & 0 deletions React/React.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
58114A4F1AAE93D500E7D092 /* RCTAsyncLocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTAsyncLocalStorage.h; sourceTree = "<group>"; };
58C571BF1AA56C1900CDF9C8 /* RCTDatePickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDatePickerManager.m; sourceTree = "<group>"; };
58C571C01AA56C1900CDF9C8 /* RCTDatePickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTDatePickerManager.h; sourceTree = "<group>"; };
78BEE2481ABABC2E00F44561 /* React.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = React.h; sourceTree = "<group>"; };
830213F31A654E0800B993E6 /* RCTBridgeModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTBridgeModule.h; sourceTree = "<group>"; };
830A229C1A66C68A008503DA /* RCTRootView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTRootView.h; sourceTree = "<group>"; };
830A229D1A66C68A008503DA /* RCTRootView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRootView.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -334,6 +335,7 @@
83CBBA2F1A601D0F00E9B192 /* React */ = {
isa = PBXGroup;
children = (
78BEE2481ABABC2E00F44561 /* React.h */,
83CBBA491A601E3B00E9B192 /* Base */,
134FCB381A6E7F0800051CC8 /* Executors */,
13B07FC41A68125100A75B9A /* Layout */,
Expand Down

0 comments on commit 5130895

Please sign in to comment.