In this article we will learn how can we achieve communication between React Native and Swift code. As we know React Native (RN) is great for building cross platform apps, but during development of react native app we might come across a situation where we need to call native code written in swift. This is where bridge module comes in, which allows us to communicate with the native layer of the application. If we are developing app in React Native for iOS and Android platform then we need to create a bridge for each platform. In this article we will discuss creation of React Native Bridge for iOS only. So Let’s start To better understand the concept we will create sample DemoApp in react native using react native CLI. Below are the commands to setup new project in react native. · react-native init DemoApp · cd DemoApp · react-native run-ios On running the app on iOS s...
Learn how to create iOS apps with Swift and React Native using our free programming tutorials and get a dose of latest technology news and tech products.
Comments
Post a Comment