• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
ansdpwn / 도로위험상황_모니터링및안내시스템 star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB 1
  • Files
  • Commit
  • Branches
도로위험상황_모니터링및안내시스템iosTrafficAgent2AppDelegate.mm
Download as .zip file
File name
Commit message
Commit date
.bundle
[FEAT] fogapp
2023-11-14
__tests__
[FEAT] fogapp
2023-11-14
android
[CHORE] apk update
2023-12-05
ios
[FEAT] fogapp
2023-11-14
src
[FIX] apk파일 생성 수정
2023-11-15
.buckconfig
[FEAT] fogapp
2023-11-14
.eslintrc.js
[FEAT] fogapp
2023-11-14
.flowconfig
[FEAT] fogapp
2023-11-14
.gitignore
[FEAT] fogapp
2023-11-14
.node-version
[FEAT] fogapp
2023-11-14
.prettierrc.js
[FEAT] fogapp
2023-11-14
.ruby-version
[FEAT] fogapp
2023-11-14
.watchmanconfig
[FEAT] fogapp
2023-11-14
App.js
[FEAT] fogapp
2023-11-14
Gemfile
[FEAT] fogapp
2023-11-14
README.md
Update README.md
2023-12-05
app.json
[FIX] api key 변경, color.js 로 관리 변경
2023-11-14
babel.config.js
[FEAT] fogapp
2023-11-14
index.js
[FEAT] fogapp
2023-11-14
metro.config.js
[FEAT] fogapp
2023-11-14
package-lock.json
[FIX] api key 변경, color.js 로 관리 변경
2023-11-14
package.json
[FIX] api key 변경, color.js 로 관리 변경
2023-11-14
test.json
[FEAT] fogapp
2023-11-14
File name
Commit message
Commit date
TrafficAgent2
[FEAT] fogapp
2023-11-14
TrafficAgent2.xcodeproj
[FEAT] fogapp
2023-11-14
TrafficAgent2Tests
[FEAT] fogapp
2023-11-14
.xcode.env
[FEAT] fogapp
2023-11-14
Podfile
[FEAT] fogapp
2023-11-14
File name
Commit message
Commit date
Images.xcassets
[FEAT] fogapp
2023-11-14
AppDelegate.h
[FEAT] fogapp
2023-11-14
AppDelegate.mm
[FEAT] fogapp
2023-11-14
Info.plist
[FEAT] fogapp
2023-11-14
LaunchScreen.storyboard
[FEAT] fogapp
2023-11-14
main.m
[FEAT] fogapp
2023-11-14
moonyeju 2023-11-14 775ed86 [FEAT] fogapp UNIX
Raw Open in browser Change history
#import "AppDelegate.h" #import <React/RCTBridge.h> #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> #import <React/RCTAppSetupUtils.h> #if RCT_NEW_ARCH_ENABLED #import <React/CoreModulesPlugins.h> #import <React/RCTCxxBridgeDelegate.h> #import <React/RCTFabricSurfaceHostingProxyRootView.h> #import <React/RCTSurfacePresenter.h> #import <React/RCTSurfacePresenterBridgeAdapter.h> #import <ReactCommon/RCTTurboModuleManager.h> #import <react/config/ReactNativeConfig.h> static NSString *const kRNConcurrentRoot = @"concurrentRoot"; @interface AppDelegate () <RCTCxxBridgeDelegate, RCTTurboModuleManagerDelegate> { RCTTurboModuleManager *_turboModuleManager; RCTSurfacePresenterBridgeAdapter *_bridgeAdapter; std::shared_ptr<const facebook::react::ReactNativeConfig> _reactNativeConfig; facebook::react::ContextContainer::Shared _contextContainer; } @end #endif @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { RCTAppSetupPrepareApp(application); RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; #if RCT_NEW_ARCH_ENABLED _contextContainer = std::make_shared<facebook::react::ContextContainer const>(); _reactNativeConfig = std::make_shared<facebook::react::EmptyReactNativeConfig const>(); _contextContainer->insert("ReactNativeConfig", _reactNativeConfig); _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer]; bridge.surfacePresenter = _bridgeAdapter.surfacePresenter; #endif NSDictionary *initProps = [self prepareInitialProps]; UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"TrafficAgent2", initProps); if (@available(iOS 13.0, *)) { rootView.backgroundColor = [UIColor systemBackgroundColor]; } else { rootView.backgroundColor = [UIColor whiteColor]; } self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; return YES; } /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. /// /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html /// @note: This requires to be rendering on Fabric (i.e. on the New Architecture). /// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`. - (BOOL)concurrentRootEnabled { // Switch this bool to turn on and off the concurrent root return true; } - (NSDictionary *)prepareInitialProps { NSMutableDictionary *initProps = [NSMutableDictionary new]; #ifdef RCT_NEW_ARCH_ENABLED initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]); #endif return initProps; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif } #if RCT_NEW_ARCH_ENABLED #pragma mark - RCTCxxBridgeDelegate - (std::unique_ptr<facebook::react::JSExecutorFactory>)jsExecutorFactoryForBridge:(RCTBridge *)bridge { _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge delegate:self jsInvoker:bridge.jsCallInvoker]; return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager); } #pragma mark RCTTurboModuleManagerDelegate - (Class)getModuleClassFromName:(const char *)name { return RCTCoreModulesClassProvider(name); } - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name jsInvoker:(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker { return nullptr; } - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name initParams: (const facebook::react::ObjCTurboModule::InitParams &)params { return nullptr; } - (id<RCTTurboModule>)getModuleInstanceFromClass:(Class)moduleClass { return RCTAppSetupDefaultModuleFromClass(moduleClass); } #endif @end

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up