From 36abe15ffe795afa1ae88c77167b39444db04b67 Mon Sep 17 00:00:00 2001 From: langke Date: Thu, 9 Apr 2020 14:19:43 +0800 Subject: [PATCH] Fix bug: resolved an error about propsTypes --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2b718ee..c652b6f 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,8 @@ const styles = StyleSheet.create({ }); class PercentageCircle extends Component { - propTypes: { + + static propTypes = { color: React.PropTypes.string, bgcolor: React.PropTypes.string, innerColor: React.PropTypes.string,