0

There are some things that CAN be done in react native but due to performance concerns, I have decided to implement in Swift and then run it in react native, for example, image processing.

Suppose I have a swift app that doesn't do anything other than displaying Hello World like so:

enter image description here

the code for it is not modified at all:

import UIKit

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
}

I would like to run this simple app in react native in this fashion:

SimpleApp.show();

How can I make this happen?

K.Wu
  • 3,553
  • 6
  • 31
  • 55

1 Answers1

0

You could do so using NativeModules

Interesting helpful article that helped me through my fitness application: Swift Modules for React Native

And this one would help too! React Native app in Swift

Nimantha
  • 6,405
  • 6
  • 28
  • 69