nodjs-mobile-native-template

1.0.0 • Public • Published

nodejs-mobile-native-template

standard-readme compliant

React native example for building applications using Node.js native modules

Table of Contents

Usage

First time setup? See CONTRIBUTING

Creating my first app

Assuming you're able to run the app, you should see a blank screen that says 'Home Screen'.

  1. Edit src/backend/server.js and create your backend server that can communicate and serve assets to the frontend. This is similar to Electron! The only difference here is that with nodejs-mobile, the frontend controls the lifecycle of the backend, rather than the other way around.
  2. Communicate between the backend and frontend in src/frontend/api.js and src/backend/server.js using rn-bridge, localhost http requests, or websockets depending on what you need (e.g., static assets should go over http requests, while commands to Node.js can be done using the rn-bridge package).
  3. Create your front-end at src/frontend/AppContainer.js!
  4. Add your logo and splash screen to android/app/src/main/res/*/*.png and android/app/src/qa/res/*/*.png

Maintainers

PRs accepted!

Community

Connect with the Dat community for support and to contribute!

  • IRC (channel #dat)

Contributing

See the contributing file!

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i nodjs-mobile-native-template

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

7.28 MB

Total Files

153

Last publish

Collaborators

  • karissa