crazycodeboy / react-native-check-box

Checkbox component for react native, it works on iOS and Android.
MIT License
518 stars 184 forks source link

Deprecated prop-types #103

Open prayaslashkari opened 1 year ago

prayaslashkari commented 1 year ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-check-box@2.1.7 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-check-box/index.js b/node_modules/react-native-check-box/index.js
index 7fb0df3..2906f33 100755
--- a/node_modules/react-native-check-box/index.js
+++ b/node_modules/react-native-check-box/index.js
@@ -16,7 +16,8 @@ import {
     TouchableHighlight,
     ViewPropTypes as RNViewPropTypes,
 } from 'react-native';
-import PropTypes from 'prop-types';
+import PropTypes from 'deprecated-react-native-prop-types';
+

 const ViewPropTypes = RNViewPropTypes || View.propTypes;

This issue body was partially generated by patch-package.

prayaslashkari commented 1 year ago

@crazycodeboy