From 3e5d8aa1008a4dacd0263f795ab6b372c7af47b9 Mon Sep 17 00:00:00 2001 From: he_jiao Date: Wed, 20 Mar 2024 10:17:31 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=B0=86=E8=A2=ABreact-native=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E7=9A=84ViewPropTypes,=20ColorPropType=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E8=A1=A5=E4=B8=81=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Example/Switch.js | 5 ++--- lib/index.js | 5 ++--- package.json | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) 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/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..66d61a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-switch-pro", - "version": "1.0.5", + "version": "1.0.5-0.0.1", "description": "an universal switcher for andriod and iOS", "main": "lib/index.js", "scripts": { @@ -11,6 +11,7 @@ "url": "git+https://github.com/poberwong/react-native-switch-pro.git" }, "dependencies": { + "deprecated-react-native-prop-types": "^5.0.0", "prop-types": "^15.5.10" }, "keywords": [ From 2d36770bb2b3fe75427ae4f52a98d0fc118959ed Mon Sep 17 00:00:00 2001 From: ding_chengjie Date: Mon, 29 Apr 2024 15:50:05 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=93=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ding_chengjie --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 66d61a5..a870b0f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-switch-pro", + "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", @@ -14,6 +14,9 @@ "deprecated-react-native-prop-types": "^5.0.0", "prop-types": "^15.5.10" }, + "harmony": { + "alias": "react-native-switch-pro" + }, "keywords": [ "switch", "universal", From 347d59677f94909f3409e351f6a99315949de494 Mon Sep 17 00:00:00 2001 From: ding_chengjie Date: Thu, 30 May 2024 17:12:25 +0800 Subject: [PATCH 3/4] =?UTF-8?q?refactor=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=BA=90=E5=BA=93=E4=BE=9D=E8=B5=96=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ding_chengjie --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a870b0f..e8e895a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ }, "dependencies": { "deprecated-react-native-prop-types": "^5.0.0", - "prop-types": "^15.5.10" + "prop-types": "^15.5.10", + "react-native-switch-pro": "^1.0.5" }, "harmony": { "alias": "react-native-switch-pro" From 176b4238883f0cace0c0181eaa8f718e21d323fd Mon Sep 17 00:00:00 2001 From: ding_chengjie Date: Thu, 30 May 2024 17:14:19 +0800 Subject: [PATCH 4/4] =?UTF-8?q?refactor=EF=BC=9A=E6=B7=BB=E5=8A=A0harmony?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ding_chengjie --- harmony/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 harmony/.gitkeep diff --git a/harmony/.gitkeep b/harmony/.gitkeep new file mode 100644 index 0000000..e69de29