react-native-check-box
react-native-check-box copied to clipboard
Error : Support for the experimental syntax 'classProperties' isn't currently enabled
I trying use checkbx in my project and this error appears:
Enviroment: react-native: 0.63.3, react-native-check-box : 2.1.7
Support for the experimental syntax 'classProperties' isn't currently enabled (28:22):
26 | } 27 |
28 | static propTypes = { | ^ 29 | ...ViewPropTypes, 30 | leftText: PropTypes.string, 31 | leftTextView: PropTypes.element,
Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation. If you want to leave it as-is, add @babel/plugin-syntax-class-properties (https://git.io/vb4yQ) to the 'plugins' section to enable parsing.