tttstudios / react-native-otp-input

Tiny Javascript library which provides an elegant UI for user to input one time passcode.
MIT License
530 stars 239 forks source link

TypeError: null is not an object(evaluating 'NativeClipboard_1.default.getString') #88

Closed sandeepg1220 closed 3 years ago

sandeepg1220 commented 4 years ago

Describe the bug Getting the error TypeError: null is not an object(evaluating 'NativeClipboard_1.default.getString')

Smartphone (please complete the following information):

ajaymarathe9 commented 4 years ago

Describe the bug Getting the error TypeError: null is not an object(evaluating 'NativeClipboard_1.default.getString')

Smartphone (please complete the following information):

  • Device: Android Honor 7X
  • OS: 9
  • Version: Checked in 1.3.11 or 1594734296316 1.3.7

Getting same issue any suggestion :(

up-himanshu commented 4 years ago

Getting the same error.

avy-sha commented 4 years ago

Same issue.

eric-dao37 commented 4 years ago

Hi,

NOTES: From version 1.3.10: We use @react-native-community/clipboard to handle the clipboard in this package, So you should install @react-native-community/clipboard Please install @react-native-community/clipboard to fix this problem.

if you are using expo, we recommend changing to the older version 1.3.7 because expo does not support @react-native-community/clipboard.

Thank you!

avy-sha commented 4 years ago

Hey, I am already using "@react-native-community/clipboard": "^1.2.3". An also not using expo. Still getting the issue.

Os: Android 10 Device Oneplus 7

Harikasai999 commented 4 years ago

hi,

i installed this "@react-native-community/clipboard": "^1.2.3" package still i am getting this error....

up-himanshu commented 4 years ago

Same here. Since my project is on RN 0.59, I just used version 1.3.7 and removed ^.

Himanshu

On Wed, Jul 15, 2020 at 3:09 PM harika notifications@github.com wrote:

hi,

i installed this "@react-native-community/clipboard": "^1.2.3" package still i am getting this error....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tttstudios/react-native-otp-input/issues/88#issuecomment-658663398, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4RX25YQQ3UWEVOITPVPSTR3V2NPANCNFSM4OZRFEGA .

ajaymarathe9 commented 4 years ago

Hello guys, I was getting same issue, I debug for while, then used different library it's working fine. use this -> "react-native-phone-input": "^0.2.4" Hope this helps you.

avy-sha commented 4 years ago

Hey, there was some error with the Gradle built itself. After I restarted Gradle daemon it resolved some dependencies of the clipboard and it started working.

pravin-maan commented 4 years ago

install this npm @react-native-community/clipboard working fine

ZaidQ797 commented 4 years ago

Getting same issue but installing this lib @react-native-community/clipboard worked for me