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.
- 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.
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
Here u have the original Swift project