
Enter all the information related to the package and it will create package.json file.

When you run the npm init it will ask you about the package. Run the following command to initiate the package:.We are creating a bridge/package for React Native to access Toast (From Android Native) using JavaScript.įor creating any package first we need to setup the basic directory structure so, let us create the directory structure as below. Requirements to build Package for React Native Bridge In this article, I will demonstrate how to create the simplest React Native Bridge module step by step. However, sometimes, you may want to call a platform API that is not supported by existing React Native component or use a third-party Android library for these cases, you need to write native code for bridging using Android Studio and Xcode. When using React Native to write mobile apps, JavaScript is the primary programming language.
