React Native Jsi Template

screenshot of React Native Jsi Template
react
react-native

React Native Jsi Template

Template library and blog that explain how JSI modules are built from scratch in React Native

Overview

The "react-native-jsi-template" is a library that serves as an example for building JavaScript Interface (JSI) modules from scratch in React Native. It provides support for building and integrating these modules within React Native projects. This library was created as a complementary resource for the developer's blog.

Features

  • Platform Agnostic: The library contains code that is compatible with both Android and iOS platforms.
  • Platform Specific: The library provides platform-specific code for Android (android/cpp-adapter.cpp) and iOS (ios/SimpleJsi.mm).
  • Basic Usage Example: The library includes an example app that demonstrates the basic usage of the JSI modules.

Installation

To install the "react-native-jsi-template" library, follow these steps:

  1. Install the required dependencies:

    • For Android, make sure you have the Android NDK and CMake installed on your machine.
    • For iOS, navigate to the "/ios" folder and run pod install to install the necessary dependencies.
  2. Include the library in your React Native project:

    • Copy the relevant code files from the library into your project's source code directory.
  3. Build the library:

    • For Android, use the Android NDK and CMake to build the library.
    • For iOS, use Xcode to build the library.

Summary

The "react-native-jsi-template" library provides a helpful example for developers who want to build their own JavaScript Interface (JSI) modules in React Native. It offers platform agnostic code, as well as platform-specific code for Android and iOS. With the included example app and installation guide, developers can quickly get started with integrating JSI modules into their React Native projects.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

react-native
React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.