Socket
Socket
Sign inDemoInstall

react-native-template-playvenbp

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-template-playvenbp

A little known feature of the `react-native init` CLI is the ability to pass a `--template` flag to it as well. This repo can serve as a boilerplate that can be continually updated/changed and used as a default boilerplate for future apps.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
237 kB
Created
Weekly downloads
 

Readme

Source

Playven Mobile BoilerPlate

A little known feature of the react-native init CLI is the ability to pass a --template flag to it as well. This repo can serve as a boilerplate that can be continually updated/changed and used as a default boilerplate for future apps.

Read more here: https://medium.com/dailyjs/the-1-2-3s-of-react-native-templates-1f5dda037e11

Run

react-native init <AppName> --template https://github.com/Playven/mobile-bp

IMPORTANT:

The cli script is pretty alpha, so there are few post install commands we need to run:

  1. Dev dependencies don't get copied over so run:
yarn add prettier lint-staged husky eslint eslint-config-prettier eslint-config-universe eslint-plugin-react --dev
  1. Adjust the package.json to use the necessary scripts/etc:
"scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "lint": "eslint src",
    "precommit": "lint-staged"
  },
  1. Add the precommit hook for prettier:
"lint-staged": {
    "*.{js,json,css,md}": [
      "prettier --write",
      "git add"
    ]
  }

FAQs

Last updated on 24 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc