nodjs-mobile-native-template
v1.0.0
Published
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
Downloads
4
Readme
nodejs-mobile-native-template
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'.
- 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. - Communicate between the backend and frontend in
src/frontend/api.js
andsrc/backend/server.js
usingrn-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 thern-bridge
package). - Create your front-end at
src/frontend/AppContainer.js
! - Add your logo and splash screen to
android/app/src/main/res/*/*.png
andandroid/app/src/qa/res/*/*.png
Maintainers
- @okdistribute
- You?
PRs accepted!
Community
Connect with the Dat community for support and to contribute!
- IRC (channel #dat)
Contributing
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT