-
-
Save lamvd0101/0a94693dde4882a46601945b4f820a95 to your computer and use it in GitHub Desktop.
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
// | |
// RNSDKViewController.swift | |
// RNSDK | |
// | |
import Foundation | |
import React | |
open class RNSDKViewController: UIViewController { | |
override public func loadView() { | |
let bundle: Bundle = Bundle.main | |
var bundleURL = bundle.resourceURL | |
if (bundleURL != nil) { | |
bundleURL!.appendPathComponent("RNSDK.bundle/rnsdk.jsbundle") | |
let view = RCTRootView(bundleURL: bundleURL!, moduleName: "RNSDKExample", initialProperties: [:]) | |
self.view = view | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment