Open niranjan-b-prajapati opened 7 years ago
I'm not an Objective-C person honestly, so I'm sorry I can't be much help. http://stackoverflow.com/questions/2455161/unrecognized-selector-sent-to-instance
I'd recommend going into the reactiflux
discord channel and asking, or alternatively don't follow my outdated blog post and check out recent libraries that have been built and follow those.
RCT_EXPORT_VIEW_PROPERTY only can export UIView property ,not UIViewController
I am new to react-native and your process and documentation helped me understand the integrating of the native module in our app, but i am getting error as in our app we have one native module code which has a webview loading a url which works in native ios mode only.
Following is the error:
We have 2 files of native IOS code which are UIViewController which i need to integrate in the app.
I have created a manager class which will act as the a bridge between react-native code.
Can you please look at code and help me figure out how to make it run as the native code is working fine in a standalone IOS project.
Following are the code:
WebViewMMS.js
MMSView.js
RCTViewManager.h
RCTMMSViewManager.m
ViewController.h this is the native ios code which needs to be integrated in app. there are some code functions i cant reveal due to confidentiality of client request, which is of native ios module, sorry for not adding it in the doubt.
ViewController.m
There is one method which injects JS code in Webview and some other native functions which process the website which is loaded in Webview, which i can't reveal here. Sorry but i basically need to call initMMS function which i can call when i receive a URL from my WebViewMMS.js file. which eventually will be set here in setMmsUrl Method.
Please help me out with the error i am facing.
Basically i just want to pass one web url from react-native code to the webview created in native ios project code to load it.