Skip to content

Instantly share code, notes, and snippets.

@lamvd0101
Created November 2, 2022 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamvd0101/0a94693dde4882a46601945b4f820a95 to your computer and use it in GitHub Desktop.
Save lamvd0101/0a94693dde4882a46601945b4f820a95 to your computer and use it in GitHub Desktop.
//
// 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