Skip to content

Commit ebf468a

Browse files
committed
update dependence of PropTypes. fixed #12
1 parent 1176c32 commit ebf468a

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

Example/Switch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from "prop-types"
23
import {
34
ViewPropTypes,
45
StyleSheet,

Example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"test": "jest"
88
},
99
"dependencies": {
10+
"prop-types": "^15.5.10",
1011
"react": "16.0.0-alpha.12",
1112
"react-native": "0.46.4"
1213
},

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from "prop-types"
23
import {
34
ViewPropTypes,
45
StyleSheet,

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-switch-pro",
3-
"version": "0.4.5",
3+
"version": "0.4.6",
44
"description": "an universal switcher for andriod and iOS",
55
"main": "lib/index.js",
66
"scripts": {
@@ -10,6 +10,9 @@
1010
"type": "git",
1111
"url": "git+https://github.com/poberwong/react-native-switch-pro.git"
1212
},
13+
"dependencies": {
14+
"prop-types": "^15.5.10"
15+
},
1316
"keywords": [
1417
"switch",
1518
"universal",

0 commit comments

Comments
 (0)