Skip to content

malopezr7/rn-swift-existing-project

Repository files navigation

Testing RN in SwiftUI Existing project

I've added my project to RN ios folder, created pod file to connect with RN, created RNViewManager to access js bundle and RNViewController to see the ui.

Features

  • Created RN Clean Project
  • Created JS Bridge in src/common/service/TestConnectNative.ts
  • Created pod file
  • Created NativeBridge and ViewManager here
  • Created ViewController, ViewRepresentable and SwiftUIView to show the UI.
  • Passing data and added callback from RN to Native and vice versa.

Deployment

To deploy this project run

Install node dependencies with

  yarn

Install pods

  cd ios/ && pod install && cd ..

Run Metro

  yarn start

Launch with

 yarn ios

Related

Here u have the original Swift project

MortyUI README

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published