Code Monkey home page Code Monkey logo

rnw-modinit's Introduction

rnw-modinit

Generate native modules project files (.vcxproj and .sln) for react-native-windows. Generated files contain project files suitable for autolinking and some base C++ code that helps you get started.

Module files are based on react-native-camera Windows module files.

Usage

node app.js ModuleName template
  • ModuleName will be used as the base for the filenames, the C++ namespace and the native module name. C++ identifiers rules apply.
  • template is the template used to generate the project files. Currently:
    • 0.61+ for RNW 0.61 and later
    • 0.62+ for RNW 0.62 and later
    • 0.62+UI for RNW 0.62 and later, an UI module template that wraps a UWP control
    • 0.62+UI-CustomControl for RNW 0.62 and later, an UI module template that wraps a custom XAML control

To generate a native module that will support RNW versions 0.61 and up:

node app.js RNModuleName 0.61+

To generate one that supports 0.62 and up:

node app.js RNModuleName 0.62+

The app will generate the project files in windows folder.

How it works

The tool will take all the files in the template folder, and change all occurrences of MODNAME in both the filenames and file content to the given ModuleName. It will also generate a GUID and replace all occurrences of MODGUID in the files with the generated one.

rnw-modinit's People

Contributors

bzoz avatar jaimecbernardo avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jaimecbernardo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.