![]() In the following sections you will create such a Calendar native module for both Android and iOS. Then you can invoke that native code through JavaScript in your React Native application. However, through native modules, you can write native code that communicates with native calendar APIs. React Native does not expose a JavaScript API to communicate with the native calendar libraries. Imagine that you want to access the iOS/Android native calendar APIs from JavaScript within a React Native application in order to create calendar events. You can follow the steps here to setup a React Native application if you do not already have one. As a prerequisite, you will need a React Native application to work within. In the following sections we will walk you through guides on how to build a native module directly within a React Native application. Check out the Setting Up a Native Module as a NPM Package guide if you are interested in doing so. However the native module you build in the following guide can be distributed as an NPM package. This guide will first walk you through implementing a native module directly within a React Native application.
0 Comments
Leave a Reply. |