This file contains hidden or 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
target 'MyApp' do | |
pod 'SomeLibrary', :modular_headers => true | |
end |
This file contains hidden or 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
target 'MyApp' do | |
pod 'SomeLibrary' | |
end |
This file contains hidden or 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
@main | |
struct BrownfieldSwiftUIApp: App { | |
@UIApplicationDelegateAdaptor var delegate: AppDelegate | |
var body: some Scene { | |
WindowGroup { | |
TabView { | |
ContentView() | |
.tabItem { | |
Label("Home", systemImage: "house") |
This file contains hidden or 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
const ReactNativeScreen = ({ prop1 }) => // ... |
This file contains hidden or 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
rootViewFactory.view(withModuleName: moduleName, initialProperties: ["prop1": "test"]) |
This file contains hidden or 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
AppRegistry.registerComponent('ReactNativeScreen', () => App) |
This file contains hidden or 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
struct ReactNativeView: UIViewRepresentable { | |
var moduleName: String | |
var rootViewFactory: RCTRootViewFactory | |
func makeUIView(context: Context) -> UIView { | |
return rootViewFactory.view(withModuleName: moduleName) | |
} | |
func updateUIView(_ uiView: UIView, context: Context) { | |
// noop |
This file contains hidden or 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
@main | |
struct BrownfieldSwiftUIApp: App { | |
@UIApplicationDelegateAdaptor var delegate: AppDelegate | |
var body: some Scene { | |
WindowGroup { | |
TabView { | |
ContentView() | |
.tabItem { | |
Label("Home", systemImage: "house") |
This file contains hidden or 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
import UIKit | |
import React | |
import React_RCTAppDelegate | |
class AppDelegate: RCTAppDelegate { | |
// ... application didFinishLaunchingWithOptions | |
override func sourceURL(for bridge: RCTBridge) -> URL? { | |
self.bundleURL() | |
} |
This file contains hidden or 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
import UIKit | |
import React | |
import React_RCTAppDelegate | |
class AppDelegate: RCTAppDelegate { | |
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { | |
// Do any setup your app needs | |
self.automaticallyLoadReactNativeWindow = false | |
// Remember to call super |