blade-old 3.0.0
Install from the command line:
Learn more about npm packages
$ npm install @razorpay/blade-old@3.0.0
Install via package.json:
"@razorpay/blade-old": "3.0.0"
About this version
A Design System that powers Razorpay
Before you install the package, make sure that you have performed following steps:
- You must be running Node version >=14.0.0
- You must have
yarn
installed - Generate a Personal Access Token on GitHub by visiting this link
- If you belong to razorpay organisation then you will need to enable SSO by clicking
Authorize
button next to Razorpay logo.
- If you belong to razorpay organisation then you will need to enable SSO by clicking
- Run
code ~/.bashrc
orcode ~/.zshrc
in your editor and add this lineexport GITHUB_ACCESS_TOKEN="<YOUR_TOKEN>"
Note: Replace
<YOUR_TOKEN>
with your actual GitHub Personal Access Token - Run
source ~/.bashrc
orsource ~/.zshrc
based on the file you added your token. - Run
code ~/.npmrc
and append the following
# add following to your .npmrc
@razorpay:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:always-auth=true
//npm.pkg.github.com/:_authToken=${GITHUB_ACCESS_TOKEN}
yarn add @razorpay/blade-old
- Add this to your package.json
"@razorpay/blade-old": "razorpay/blade.git#master"
- Run
yarn
- Create a file in your project root directory called
react-native.config.js
and add blade as an asset dependency to get all the fonts:
module.exports = {
assets: ['@razorpay/blade-old'],
};
- Run
npx react-native link
- Add this to your package.json
"@razorpay/blade-old": "razorpay/blade.git#master"
- Run
yarn
- Run
npx react-native link @razorpay/blade-old