React Native Create Library screenshot

React Native Create Library

Author Avatar Theme by Frostney
Updated: 22 Sep 2018
1456 Stars

:notebook: Command line tool to create a React Native library with a single command

Categories

Overview

The react-native-create-library tool is designed to streamline the process of creating a React Native library by generating a boilerplate with best practices in mind. It is particularly useful for developers looking to create native modules for React Native, as it handles the setup of native code for different platforms and the binding with JavaScript code. Unlike the react-native new-library command, this tool creates an up-to-date library without the need for an already initialized React Native project, albeit without a view component.

Features

  • Simplified Creation: Generates a boilerplate with current best practices.
  • Multi-Platform Support: Sets up native code for multiple platforms.
  • Ease of Use: Does not require an existing React Native project to create a library.
  • MIT License: Licensed under the MIT license for flexibility and usage freedom.

Installation

  1. Requirements: Node 6.0+ must be installed.
  2. Command-line: Navigate to an empty directory and execute the command to create the library (react-native-create-library).
  3. Folder Creation: The tool will create a folder (e.g., MyFancyLibrary) where the library will be generated.
  4. Dependency Installation: Run the command to install dependencies within the newly created library.

Summary

The react-native-create-library tool offers a convenient solution for developers needing to create native modules for React Native without the hassle of setting up the boilerplate code manually. By providing a standardized approach and automating the initial setup, this tool allows for a quicker and more efficient development process.