clipboard icon indicating copy to clipboard operation
clipboard copied to clipboard

Native module RNCClipboard tried to override ClipboardModule

Open lfoliveir4 opened this issue 4 years ago • 7 comments

Environment

react-native run-android

Platforms

Android

Versions

  • Android: latest
  • iOS: latest
  • react-native-netinfo: no contain
  • react-native: 0.63.3
  • react: 16.13.1

Description

When I do the build to emulate the android, with the following command: react native run-android the cliboard library returns the error attached

Reproducible Demo

npx react-native run-android

image

lfoliveir4 avatar Feb 12 '21 13:02 lfoliveir4

Any update here?

jigs611989 avatar Mar 04 '21 21:03 jigs611989

Same issue, please resolve it.

MTayyabMehar avatar Mar 15 '21 09:03 MTayyabMehar

Same issue

mattThousand avatar Mar 23 '21 17:03 mattThousand

I had a react native community clipboard module in my project trying to use the same name, causing the crash. Can anyone share their package.json

GNT-Gustavo avatar Apr 13 '21 18:04 GNT-Gustavo

Yes, I have got the same issue too, please help me... is anyone here with the solution?

ShivamGoyal26 avatar May 07 '21 13:05 ShivamGoyal26

My issue was having react-native-community/clipboard, trying to use ClipboardModule. Ended up using that package instead of this one, but removing either one should should solve the issue.

GNT-Gustavo avatar May 07 '21 16:05 GNT-Gustavo

My issue was having react-native-community/clipboard, trying to use ClipboardModule. Ended up using that package instead of this one, but removing either one should should solve the issue.

Yes it did, Thanks a lot I just remove the other one in the package.json and it solved the problem :)

ShivamGoyal26 avatar May 08 '21 12:05 ShivamGoyal26