Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Commit 66cde68

Browse files
committed
Prepare for initial npm release
1 parent 6dc6c78 commit 66cde68

File tree

3 files changed

+39
-18
lines changed

3 files changed

+39
-18
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docs
2+
node_modules

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
# react-native-responsive-styles
1+
<h1 align="center">react-native-responsive-styles</h1>
22

3-
React Native styles that respond to orientation change.
3+
<p align="center">
4+
<a title='License' href="https://raw.githubusercontent.com/FormidableLabs/react-native-responsive-styles/master/LICENSE">
5+
<img src='https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square' />
6+
</a>
7+
<a href="https://badge.fury.io/js/react-native-responsive-styles">
8+
<img src="https://badge.fury.io/js/react-native-responsive-styles.svg" alt="npm version" height="18">
9+
</a>
10+
</p>
11+
12+
<h4 align="center">
13+
React Native styles that respond to device orientation change
14+
</h4>
15+
16+
***
417

518
### How-to
619

7-
For the time being, install straight from GitHub
20+
Installation:
821
```
9-
npm i --save https://github.com/FormidableLabs/react-native-responsive-styles
22+
npm i --save react-native-responsive-styles
1023
```
1124

12-
Simply import `StyleSheet` and any React components from `react-native-responsive-styles` instead of `react-native`
25+
You can now import `StyleSheet` and any React components from `react-native-responsive-styles` instead of `react-native`:
1326
```js
1427
import {
1528
View,

package.json

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
{
22
"name": "react-native-responsive-styles",
3-
"version": "0.1.0",
4-
"description": "React Native styles that respond to orientation change",
3+
"version": "0.2.0",
4+
"description": "React Native styles that respond to device orientation change",
5+
"keywords": [
6+
"react",
7+
"native",
8+
"responsive",
9+
"orientation"
10+
],
511
"main": "index.js",
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/FormidableLabs/react-native-responsive-styles.git"
15+
},
16+
"bugs": {
17+
"url": "https://github.com/FormidableLabs/react-native-responsive-styles/issues"
18+
},
19+
"homepage": "https://github.com/FormidableLabs/react-native-responsive-styles#readme",
20+
"author": "Jani Eväkallio",
21+
"license": "MIT",
622
"scripts": {
723
"lint": "eslint index.js lib/",
824
"flow": "flow check",
@@ -23,15 +39,5 @@
2339
"flow-bin": "^0.32.0",
2440
"react": "15.3.2",
2541
"react-native": "0.34.0"
26-
},
27-
"repository": {
28-
"type": "git",
29-
"url": "git+https://github.com/FormidableLabs/react-native-responsive-styles.git"
30-
},
31-
"author": "",
32-
"license": "MIT",
33-
"bugs": {
34-
"url": "https://github.com/FormidableLabs/react-native-responsive-styles/issues"
35-
},
36-
"homepage": "https://github.com/FormidableLabs/react-native-responsive-styles#readme"
42+
}
3743
}

0 commit comments

Comments
 (0)