react-native-material-dropdown icon indicating copy to clipboard operation
react-native-material-dropdown copied to clipboard

finding TypeError error in 0.62 version in react native.

Open anshumanburman opened this issue 4 years ago • 13 comments

Screenshot 2020-04-07 at 10 45 12 AM

anshumanburman avatar Apr 07 '20 05:04 anshumanburman

Yes....i have same error

lalakiyaRahul avatar Apr 07 '20 05:04 lalakiyaRahul

@anshumanburman Any solution for this error.?

lalakiyaRahul avatar Apr 07 '20 09:04 lalakiyaRahul

@lalakiyaRahul not yet i have removed the library finally. if you find any solution then please let me know.

anshumanburman avatar Apr 07 '20 10:04 anshumanburman

same here, please let us updated if there is a work around

yassineKharraz avatar Apr 07 '20 11:04 yassineKharraz

I have the same error in React-Native 0.62

raza-repo avatar Apr 07 '20 16:04 raza-repo

@anshumanburman ok.

lalakiyaRahul avatar Apr 08 '20 08:04 lalakiyaRahul

https://github.com/n4kz/react-native-material-dropdown/issues/220

ckasek avatar Apr 09 '20 22:04 ckasek

I solve this by commenting itemTextStyle: Text.propTypes.style in ..\node_modules\react-native-material-dropdown\src\components\dropdown file.

And removing Animated in Animated.Text.propTypes.style in affix/index helper/index label/index of react-native-material-textfield and added import { Animated, Text} from 'react-native'; in each of above three files.

eriffat896 avatar Apr 16 '20 15:04 eriffat896

Any solution????

RahulkrishnanSpericorn avatar May 05 '20 08:05 RahulkrishnanSpericorn

@RahulkrishnanSpericorn use this #220

lalakiyaRahul avatar May 05 '20 08:05 lalakiyaRahul

Thank you for your response

On Tue, May 5, 2020 at 2:22 PM lalakiyaRahul [email protected] wrote:

@RahulkrishnanSpericorn https://github.com/RahulkrishnanSpericorn use this #220 https://github.com/n4kz/react-native-material-dropdown/issues/220

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/n4kz/react-native-material-dropdown/issues/224#issuecomment-623936011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGOMTMQ7LSJQJM35K7QOLDRP7HVXANCNFSM4MC2CZ6A .

RahulkrishnanSpericorn avatar May 05 '20 10:05 RahulkrishnanSpericorn

I made a patch to make react-native-material-dropdown work in RN 0.62.

Requirement:

  1. Install patch-package
  2. Run yarn add patch-package postinstall-postinstall or npm i patch-package

Instruction:

  1. Create "patches" directory under your project's root
  2. Copy this patch to patches/react-native-material-dropdown++react-native-material-textfield+0.12.0.patch
  3. Run yarn patch-package or npx patch-package
  4. Fix is already applied. Add the following to package.json to make sure the fix is automatically applied next time:
 "scripts": {
    "postinstall": "patch-package"
 }

https://gist.github.com/OscarYuen/21f2f8d5c133caef7d31475cfec2d5b0#file-react-native-material-dropdown-react-native-material-textfield-0-12-0-patch

OscarYuen avatar Jul 14 '20 09:07 OscarYuen

I found the solution for it. Let's create a bash file with content: sed -i ".bak" '/Animated.Text.propTypes.style/d' node_modules/react-native-material-textfield/src/components/helper/index.js sed -i ".bak" '/Animated.Text.propTypes.style/d' node_modules/react-native-material-textfield/src/components/affix/index.js sed -i ".bak" '/Animated.Text.propTypes.style/d' node_modules/react-native-material-textfield/src/components/label/index.js Then in postinstall, let add command to execute this file, it will remove the animated prototype inside the library

slade77777 avatar Aug 28 '20 14:08 slade77777