New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-component

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-component

Generate skeletons for react native components

npmnpm
Version
0.1.7
Version published
Weekly downloads
14
250%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-component

GitHub issues GitHub version MIT license

Generate skeletons for react native components

Note: this package assumes you use components with the following structure:

|- ComponentName
|--- generic.js
|--- styles.js

Installation

yarn global add react-native-component
or
npm install -g react-native-component

Usage

To create a component in the current directory

react-native-component -n <ComponentName>

To create a component in a specified path

react-native-component -n <ComponentName> -p <CustomPath>

To specify that the component should be stateless

react-native-component -n <ComponentName> -s

Example

  • Creating a Login component

react-native-component -n Login

  • Creating a stateless Button component in a specific path

react-native-component -n Button -p components/Common

Keywords

react native

FAQs

Package last updated on 14 Nov 2018

Did you know?

Socket

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