diff --git a/Example/Switch.js b/Example/Switch.js index a2219da..2764160 100644 --- a/Example/Switch.js +++ b/Example/Switch.js @@ -1,13 +1,12 @@ import React, { Component } from 'react' import PropTypes from "prop-types" import { - ViewPropTypes, - ColorPropType, StyleSheet, Animated, Easing, PanResponder, -} from 'react-native' +} from 'react-native'; +import { ViewPropTypes, ColorPropType } from 'deprecated-react-native-prop-types'; const SCALE = 6 / 5 diff --git a/harmony/.gitkeep b/harmony/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/lib/index.js b/lib/index.js index 7715b57..ea43980 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,13 +1,12 @@ import React, { Component } from 'react' import PropTypes from "prop-types" import { - ViewPropTypes, - ColorPropType, StyleSheet, Animated, Easing, PanResponder, -} from 'react-native' +} from 'react-native'; +import { ViewPropTypes, ColorPropType } from 'deprecated-react-native-prop-types'; const SCALE = 6 / 5 diff --git a/package.json b/package.json index b6ee2aa..e8e895a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "react-native-switch-pro", - "version": "1.0.5", + "name": "@react-native-oh-tpl/react-native-switch-pro", + "version": "1.0.5-0.0.1", "description": "an universal switcher for andriod and iOS", "main": "lib/index.js", "scripts": { @@ -11,7 +11,12 @@ "url": "git+https://github.com/poberwong/react-native-switch-pro.git" }, "dependencies": { - "prop-types": "^15.5.10" + "deprecated-react-native-prop-types": "^5.0.0", + "prop-types": "^15.5.10", + "react-native-switch-pro": "^1.0.5" + }, + "harmony": { + "alias": "react-native-switch-pro" }, "keywords": [ "switch",