From 79ed1d9a9f68d172fb4e33c0b9e5afa4e9462480 Mon Sep 17 00:00:00 2001 From: infokora Date: Sun, 4 Feb 2018 20:14:18 +0200 Subject: [PATCH 1/3] delete propTypes --- index.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/index.js b/index.js index d65bf4c0..d0bb8a1c 100644 --- a/index.js +++ b/index.js @@ -20,21 +20,21 @@ import BaseComponent from './BaseComponent'; let componentIndex = 0; -const propTypes = { - data: PropTypes.array, - onChange: PropTypes.func, - initValue: PropTypes.string, - style: View.propTypes.style, - selectStyle: View.propTypes.style, - optionStyle: View.propTypes.style, - optionTextStyle: Text.propTypes.style, - sectionStyle: View.propTypes.style, - sectionTextStyle: Text.propTypes.style, - cancelStyle: View.propTypes.style, - cancelTextStyle: Text.propTypes.style, - overlayStyle: View.propTypes.style, - cancelText: PropTypes.string -}; +// const propTypes = { +// data: PropTypes.array, +// onChange: PropTypes.func, +// initValue: PropTypes.string, +// style: View.propTypes.style, +// selectStyle: View.propTypes.style, +// optionStyle: View.propTypes.style, +// optionTextStyle: Text.propTypes.style, +// sectionStyle: View.propTypes.style, +// sectionTextStyle: Text.propTypes.style, +// cancelStyle: View.propTypes.style, +// cancelTextStyle: Text.propTypes.style, +// overlayStyle: View.propTypes.style, +// cancelText: PropTypes.string +// }; const defaultProps = { data: [], From 4f165304652c08ac546cca0b9ea627b9f6a567d7 Mon Sep 17 00:00:00 2001 From: infokora Date: Sun, 4 Feb 2018 20:39:02 +0200 Subject: [PATCH 2/3] update --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d0bb8a1c..9061d25a 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ import BaseComponent from './BaseComponent'; let componentIndex = 0; -// const propTypes = { +const propTypes = { // data: PropTypes.array, // onChange: PropTypes.func, // initValue: PropTypes.string, @@ -34,7 +34,7 @@ let componentIndex = 0; // cancelTextStyle: Text.propTypes.style, // overlayStyle: View.propTypes.style, // cancelText: PropTypes.string -// }; +}; const defaultProps = { data: [], From b4c1d82bf8a018992285ab5a6ca77f09dd41485d Mon Sep 17 00:00:00 2001 From: infokora Date: Wed, 7 Feb 2018 18:13:30 +0200 Subject: [PATCH 3/3] a --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9061d25a..eaab978b 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,7 @@ import BaseComponent from './BaseComponent'; let componentIndex = 0; const propTypes = { + // data: PropTypes.array, // onChange: PropTypes.func, // initValue: PropTypes.string,