Last active
September 25, 2019 10:16
-
-
Save Moumene/e38274d54964d096bd83582a8f95585b to your computer and use it in GitHub Desktop.
React native 0.60.5 Podfile & appDelegate content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
#import "AppDelegate.h" | |
#import <React/RCTBridge.h> | |
#import <React/RCTBundleURLProvider.h> | |
#import <React/RCTRootView.h> | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; | |
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge | |
moduleName:@"testProj" | |
initialProperties:nil]; | |
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; | |
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | |
UIViewController *rootViewController = [UIViewController new]; | |
rootViewController.view = rootView; | |
self.window.rootViewController = rootViewController; | |
[self.window makeKeyAndVisible]; | |
return YES; | |
} | |
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge | |
{ | |
#if DEBUG | |
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; | |
#else | |
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; | |
#endif | |
} | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
platform :ios, '9.0' | |
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
target 'testProj' do | |
# Pods for testProj | |
pod 'React', :path => '../node_modules/react-native/' | |
pod 'React-Core', :path => '../node_modules/react-native/React' | |
pod 'React-DevSupport', :path => '../node_modules/react-native/React' | |
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' | |
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' | |
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' | |
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' | |
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' | |
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' | |
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' | |
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' | |
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' | |
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket' | |
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' | |
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' | |
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' | |
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' | |
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' | |
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | |
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' | |
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | |
target 'testProjTests' do | |
inherit! :search_paths | |
# Pods for testing | |
end | |
use_native_modules! | |
end | |
target 'testProj-tvOS' do | |
# Pods for testProj-tvOS | |
target 'testProj-tvOSTests' do | |
inherit! :search_paths | |
# Pods for testing | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment