4.1.0 • Published 3 years ago

rn-mycustompackagedemo v4.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

/*

Follow the steps to create a new npm:- https://youtu.be/No3nHbFrWsU

  1. npm adduser

  2. npm publish

if you want to update the new version

  1. npm version minor(patch, major, or minor)

  2. npm publish

*/ //-----------------------------------------

  1. mkdir in particular path,

Ex:- cd /Users/kuldip/Desktop/Projects/rn-myCustomPackageDemo

  1. create folder

src -> components -> components_name(Button)

  • index.js
  1. create a index.ts in components folder and menton import/export components in this file.

  2. create a index.js in src folder and mention all the components in this file.

  3. create a index.ts in out off src folder and mention src folder path in this file.

  4. peerDependices in mention required third-party or react framework with version

Ex:-

"peerDependencies": { "react": "17.0.2", "react-native": "0.67.4", "react-native-responsive-screen": "^1.4.1", "react-native-indicators": "^0.17.0" }

Usage Of Package:-

npm i rn-mycustompackagedemo

  1. Import component

import { MyCustomTextFieldComponent, MyCustomButtonComponent,MyCustomActivityIndicatorComponent } from 'rn-mycustompackagedemo';

  1. MyCustomTextFieldComponent component Usage

<MyCustomTextFieldComponent otherStyle={{ width: wp(80)}} onChangeText={(text) => { this.setState({ email: text }) }} keyboardType={"email-address"} value={this.state.email} returnKeyType='done' secureTextEntry={false} autoCapitalize='none' placeholder={'Email'} placeholderTextColor='#000000' selectionColor={'#000000'} borderColor= {'#0000FF'} />

  1. MyCustomButtonComponent component Usage

<MyCustomButtonComponent onPress={() => this.btnNextClicked()} otherStyle={{ marginTop: hp(10.4947526237), backgroundColor: '#0000FF', width: wp(46.6666666667)}}> Submit

  1. MyCustomActivityIndicatorComponent component Usage
4.1.0

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago