Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Integrating the React-Native component inside the custom native framework in swift

$
0
0

Prequisites: I am able to integrate the react-native component inside the native iOS swift application. To achieve this I used following links

  1. https://reactnative.dev/docs/0.6/communication-ios

  2. https://www.raywenderlich.com/945-react-native-tutorial-integrating-in-an-existing-app

  3. https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md

  4. https://medium.com/@bogdan.bolchis/integrating-react-native-with-an-existing-ios-app-ce6f68e55e13

Objective - I want to integrate the react-native component inside the native swift based custom framework. And then that framework is going to be used inside the native host application.

Following are some of the screen shots of the framework project which is compiling without error.

enter image description here

enter image description here

After the framework is compiled successfully. I added that framework inside the HostApp which is native iOS application coded in swift. As shown below.

enter image description here

That was giving compile time error as shown below.

enter image description here

Anyhow I wanted to at least compile the HostApp. I did add the dependencies mentioned in the error inside the project as shown in the following screenshot.

enter image description here

Then also it was giving the same error.

Please help me if anybody has any solution/suggestion on this. It will be really appreciated.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>