From 9e8a9f8d8008a35fda9abab64eea782bed558deb Mon Sep 17 00:00:00 2001 From: doramong0926 Date: Sat, 6 Oct 2018 23:47:26 +0900 Subject: [PATCH 1/3] change propTypes --- lib/Avatar.js | 2 +- lib/Button.js | 2 +- lib/Card/Actions.js | 2 +- lib/Card/Body.js | 2 +- lib/Card/Media.js | 2 +- lib/Card/index.js | 2 +- lib/Checkbox.js | 2 +- lib/CheckboxGroup.js | 2 +- lib/Divider.js | 2 +- lib/Drawer/Header.js | 2 +- lib/Drawer/Section.js | 2 +- lib/Drawer/index.js | 2 +- lib/Icon.js | 2 +- lib/IconToggle.js | 2 +- lib/List.js | 2 +- lib/RadioButton.js | 2 +- lib/RadioButtonGroup.js | 2 +- lib/Ripple.js | 2 +- lib/Subheader.js | 2 +- lib/Toolbar.js | 2 +- lib/polyfill/Ripple.js | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/Avatar.js b/lib/Avatar.js index 1126c16..0a80ca8 100644 --- a/lib/Avatar.js +++ b/lib/Avatar.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View, Image, Text} from "react-native"; import Icon from './Icon'; import { getColor } from './helpers'; diff --git a/lib/Button.js b/lib/Button.js index a40efae..a1111e4 100644 --- a/lib/Button.js +++ b/lib/Button.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {ActivityIndicator, View, Text, TouchableNativeFeedback, Platform} from "react-native"; import Ripple from './polyfill/Ripple'; import { TYPO, PRIMARY, THEME_NAME, PRIMARY_COLORS } from './config'; diff --git a/lib/Card/Actions.js b/lib/Card/Actions.js index 2fe2c29..07e1c62 100644 --- a/lib/Card/Actions.js +++ b/lib/Card/Actions.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {StyleSheet, View} from "react-native"; export default class Actions extends Component { diff --git a/lib/Card/Body.js b/lib/Card/Body.js index 66bea89..bf2206a 100644 --- a/lib/Card/Body.js +++ b/lib/Card/Body.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {StyleSheet, View} from "react-native"; export default class Body extends Component { diff --git a/lib/Card/Media.js b/lib/Card/Media.js index 715bfe8..d0e90d6 100644 --- a/lib/Card/Media.js +++ b/lib/Card/Media.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {StyleSheet, Image, View} from "react-native"; export default class Media extends Component { diff --git a/lib/Card/index.js b/lib/Card/index.js index fed68bb..9ec30d3 100644 --- a/lib/Card/index.js +++ b/lib/Card/index.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View, TouchableNativeFeedback} from "react-native"; import Ripple from '../polyfill/Ripple'; import { getColor, isCompatible } from '../helpers'; diff --git a/lib/Checkbox.js b/lib/Checkbox.js index 5127e9c..b393329 100644 --- a/lib/Checkbox.js +++ b/lib/Checkbox.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {StyleSheet, Text, View, TouchableHighlight} from "react-native"; import { TYPO, PRIMARY, COLOR, PRIMARY_COLORS, THEME_NAME } from './config'; import Icon from './Icon'; diff --git a/lib/CheckboxGroup.js b/lib/CheckboxGroup.js index 8535dc2..c4d1948 100644 --- a/lib/CheckboxGroup.js +++ b/lib/CheckboxGroup.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View} from "react-native"; import Checkbox from './Checkbox'; import { THEME_NAME, PRIMARY, PRIMARY_COLORS } from './config'; diff --git a/lib/Divider.js b/lib/Divider.js index eb03443..0508e8c 100644 --- a/lib/Divider.js +++ b/lib/Divider.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View} from "react-native"; import { THEME_NAME } from './config'; diff --git a/lib/Drawer/Header.js b/lib/Drawer/Header.js index b85e7af..40a1168 100644 --- a/lib/Drawer/Header.js +++ b/lib/Drawer/Header.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View, Image} from "react-native"; export default class Header extends Component { diff --git a/lib/Drawer/Section.js b/lib/Drawer/Section.js index 67b14f8..2aefd48 100644 --- a/lib/Drawer/Section.js +++ b/lib/Drawer/Section.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View, Text, TouchableNativeFeedback} from "react-native"; import Icon from '../Icon'; import Ripple from '../polyfill/Ripple'; diff --git a/lib/Drawer/index.js b/lib/Drawer/index.js index e97a60c..73f02c9 100644 --- a/lib/Drawer/index.js +++ b/lib/Drawer/index.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {ScrollView} from "react-native"; import { THEME_NAME, PRIMARY_COLORS } from '../config'; import { getColor } from '../helpers'; diff --git a/lib/Icon.js b/lib/Icon.js index 38f836a..0c2a87e 100644 --- a/lib/Icon.js +++ b/lib/Icon.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View} from "react-native"; import { getColor } from './helpers'; import VectorIconComponent from './VectorIconComponent'; diff --git a/lib/IconToggle.js b/lib/IconToggle.js index b5cd31c..0dde203 100644 --- a/lib/IconToggle.js +++ b/lib/IconToggle.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {Text, View, Animated} from "react-native"; import { getColor } from './helpers'; diff --git a/lib/List.js b/lib/List.js index 22e9929..bc3a9bd 100644 --- a/lib/List.js +++ b/lib/List.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {StyleSheet, View, Text, TouchableWithoutFeedback} from "react-native"; import { TYPO } from './config'; diff --git a/lib/RadioButton.js b/lib/RadioButton.js index 819c1d8..2bb61e4 100644 --- a/lib/RadioButton.js +++ b/lib/RadioButton.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {StyleSheet, Text, View, TouchableHighlight} from "react-native"; import Icon from './Icon'; import IconToggle from './IconToggle'; diff --git a/lib/RadioButtonGroup.js b/lib/RadioButtonGroup.js index 3f7a8ce..e3c432a 100644 --- a/lib/RadioButtonGroup.js +++ b/lib/RadioButtonGroup.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View} from "react-native"; import RadioButton from './RadioButton'; import { PRIMARY, PRIMARY_COLORS, THEME_NAME } from './config'; diff --git a/lib/Ripple.js b/lib/Ripple.js index 1afa283..68e6246 100644 --- a/lib/Ripple.js +++ b/lib/Ripple.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View, Text, TouchableNativeFeedback} from "react-native"; import { default as PolyfillRipple } from './polyfill/Ripple'; import { isCompatible } from './helpers'; diff --git a/lib/Subheader.js b/lib/Subheader.js index 5817fc9..ba070be 100644 --- a/lib/Subheader.js +++ b/lib/Subheader.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {StyleSheet, View, Text} from "react-native"; import { TYPO, THEME_NAME } from './config'; import { getColor } from './helpers'; diff --git a/lib/Toolbar.js b/lib/Toolbar.js index d28c51c..5a846af 100644 --- a/lib/Toolbar.js +++ b/lib/Toolbar.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View, Text} from "react-native"; import { TYPO, PRIMARY, THEME_NAME, PRIMARY_COLORS } from './config'; import { getColor } from './helpers'; diff --git a/lib/polyfill/Ripple.js b/lib/polyfill/Ripple.js index 4e41e9c..0c1ac4f 100644 --- a/lib/polyfill/Ripple.js +++ b/lib/polyfill/Ripple.js @@ -1,4 +1,4 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; import PropTypes from 'prop-types'; import {View, Animated, TouchableOpacity, Platform} from "react-native"; import elevationPolyfill from './Elevation'; From 0490868bfdac4d4ff4d990fc37233563bf0813dd Mon Sep 17 00:00:00 2001 From: doramong0926 Date: Sun, 7 Oct 2018 00:03:07 +0900 Subject: [PATCH 2/3] prepare npm publish --- package.json | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 83985a4..71e0d6c 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { - "name": "react-native-material-design", - "version": "0.3.8", - "description": "React Native Material Design Components", + "name": "@doramong/react-native-material-design", + "version": "1.0.0", + "description": "Fork React Native Material Design Components for propTypes issue", "main": "lib/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "lint": "./node_modules/.bin/eslint ./lib" + "lint": "eslint ./lib" }, "repository": { "type": "git", - "url": "https://github.com/react-native-material-design/react-native-material-design" + "url": "git+https://github.com/doramong0926/react-native-material-design.git" }, "keywords": [ "react-native", @@ -22,9 +22,9 @@ ], "license": "MIT", "bugs": { - "url": "https://github.com/react-native-material-design/react-native-material-design/issues" + "url": "https://github.com/doramong0926/react-native-material-design" }, - "homepage": "https://github.com/react-native-material-design/react-native-material-design", + "homepage": "https://github.com/doramong0926/react-native-material-design", "dependencies": { "react-native-material-design-styles": "git+https://github.com/react-native-material-design/react-native-material-design-styles.git", "react-native-vector-icons": "^2.0.1" @@ -33,5 +33,9 @@ "babel-eslint": "^4.1.6", "eslint": "^1.6.0", "eslint-plugin-react": "^3.5.1" - } + }, + "directories": { + "lib": "lib" + }, + "author": "doramong0926@gmail.com" } From cd2d7f4d71373b5d89fc86c44ac496bb911694c1 Mon Sep 17 00:00:00 2001 From: doramong0926 Date: Sun, 7 Oct 2018 00:31:57 +0900 Subject: [PATCH 3/3] change readme --- README.md | 2 +- package.json | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8f70fce..3aad925 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Or view it online [here](https://appetize.io/app/hyp1m20y515c16cj5yw2karcjg)! (C ## Installation ``` -npm i react-native-material-design --save +npm i @doramong0926/react-native-material-design --save ``` Follow the [Android installation instructions](https://github.com/oblador/react-native-vector-icons#android) on the [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) library, which consists of adding the following to your `./android/app/build.gradle`: diff --git a/package.json b/package.json index 71e0d6c..1b787de 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,8 @@ { - "name": "@doramong/react-native-material-design", + "name": "@doramong0926/react-native-material-design", "version": "1.0.0", "description": "Fork React Native Material Design Components for propTypes issue", "main": "lib/index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "lint": "eslint ./lib" - }, "repository": { "type": "git", "url": "git+https://github.com/doramong0926/react-native-material-design.git" @@ -37,5 +33,8 @@ "directories": { "lib": "lib" }, - "author": "doramong0926@gmail.com" + "author": "doramong0926", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + } }