@react-native-component/react-native-smart-badge
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@react-native-component/react-native-smart-badge", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A smart auto-fit badge for React Native apps", | ||
@@ -5,0 +5,0 @@ "main": "Badge.js", |
@@ -18,16 +18,19 @@ # react-native-smart-badge | ||
or | ||
## Usage | ||
``` | ||
npm install @react-native-component/react-native-smart-badge --save | ||
``` | ||
Install the button from npm with `npm install react-native-smart-badge --save`. | ||
Then, require it from your app's JavaScript files with `import Badge from 'react-native-smart-badge'`. | ||
```js | ||
import React, { | ||
Component, | ||
} from 'react' | ||
import { | ||
StyleSheet, | ||
View, | ||
Text, | ||
} from 'react-native' | ||
import Badge from 'react-native-smart-badge' | ||
## Usage | ||
Install the button from npm with `npm install @react-native-component/react-native-smart-badge --save`. | ||
Then, require it from your app's JavaScript files with `import Button from '@react-native-component/react-native-smart-badge'`. | ||
```js | ||
export default class NumberBadge extends Component { | ||
@@ -34,0 +37,0 @@ |
7848
89