1// Copyright 2018-present 650 Industries. All rights reserved.
2
3#import <ExpoModulesCore/EXReactCompatibleHelpers.h>
4
5#import <React/RCTRootView.h>
6
7#if __has_include(<React-RCTAppDelegate/RCTAppSetupUtils.h>)
8#import <React-RCTAppDelegate/RCTAppSetupUtils.h>
9#elif __has_include(<React_RCTAppDelegate/RCTAppSetupUtils.h>)
10// for importing the header from framework, the dash will be transformed to underscore
11#import <React_RCTAppDelegate/RCTAppSetupUtils.h>
12#else
13// react-native < 0.72
14#import <React/RCTAppSetupUtils.h>
15#endif
16
17UIView *EXAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties, BOOL fabricEnabled)
18{
19#if REACT_NATIVE_MINOR_VERSION >= 71
20  return RCTAppSetupDefaultRootView(bridge, moduleName, initialProperties, fabricEnabled);
21#else
22  return RCTAppSetupDefaultRootView(bridge, moduleName, initialProperties);
23#endif // REACT_NATIVE_MINOR_VERSION >= 71
24}
25
26