Skip to content

Commit

Permalink
docs: add yarn install instructions
Browse files Browse the repository at this point in the history
I like to copy-and-paste the command and I use yarn, not npm,
so I prefer it when library devs add the yarn command too.
  • Loading branch information
SConaway committed Oct 30, 2020
1 parent 31512d5 commit 9f50861
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,28 @@ Credit Card Component for React Native -- Display Only. At the moment, it only s
npm install react-native-credit-card-display
```

or

```sh
yarn add react-native-credit-card-display
```

## Basic Example

```js
import CreditCardDisplay from "react-native-credit-card-display";
import CreditCardDisplay from 'react-native-credit-card-display';

// ...

return (
{/* ... */}
<CreditCardDisplay
number={4242424242424242}
cvc={123}
expiration="04/21"
name="John J. Doe"
since="2004"
/>
)
);
```

## Props
Expand Down

0 comments on commit 9f50861

Please sign in to comment.