Open saurav-bhagat opened 3 years ago
I also getting same error.
Steps for reproducing the error:
expo init testProject
(bare javascript template)yarn add @twotalltotems/react-native-otp-input
and yarn add @react-native-community/clipboard
import OTPInputView from '@twotalltotems/react-native-otp-input'
<OTPInputView pinCount={4} />
Getting the same error as shown in the screenshot above. Can you please suggest, if there is a workaround or version mismatch issue?
"@react-native-community/clipboard": "^1.5.1", "@twotalltotems/react-native-otp-input": "^1.3.11",
I faced this issue and solved it by using these versions
"@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
I faced this issue and solved it by using these versions
"@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
This did work. Thanks But this will create a hard dependency on the version.
I faced this issue and solved it by using these versions "@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
This did work. Thanks But this will create a hard dependency on the version.
I am also facing the same problem but this solution didn't work for me.
I faced this issue and solved it by using these versions "@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
This did work. Thanks But this will create a hard dependency on the version.
I am also facing the same problem but this solution didn't work for me.
Make sure u delete the package-lock.json or yarn-lock.json then delete node_modules and npm install again
I faced this issue and solved it by using these versions
"@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
Thanks @Omaksousa, this worked for now, I had to perform rm -rf node_modules tho.
facing same issue but not work with above solution
I faced this issue and solved it by using these versions
"@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
This works for me .
I faced this issue and solved it by using these versions
"@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
if installed clipboard npm its working fine npm install --save @react-native-community/clipboard
I faced this issue and solved it by using these versions "@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
if installed clipboard npm its working fine npm install --save @react-native-community/clipboard
It works for me.
You can tried set false in props property autofillFromClipboard={false}. It's work for me
can we use this library in expo manage workflow
Worked with me with the latest version: ^1.11.2 just ran npx react-native run-android and it worked
npm install --save @react-native-community/clipboard npx react-native run-android // worked for me
npm install --save @react-native-community/clipboard npx react-native run-android it worked !!!
Great Worked for me was making app on expo
Still getting this error.
running my app on android 14,
app crashes on otp input with this error
I installed react-native/clipboard but that is failing the build
I faced this issue and solved it by using these versions
"@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
this solution is now outdated
I faced this issue and solved it by using these versions "@twotalltotems/react-native-otp-input": "1.3.5", "@react-native-community/clipboard": "^1.5.1",
this solution is now outdated
Did you solve the problem? For react-native version 0.73.1
can anyone help me out? WARN Clipboard has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-clipboard/clipboard' instead of 'react-native'. See https://github.com/react-native-clipboard/clipboard
This issue still exists. Any fix?
try this @react-native-clipboard/clipboard "^1.14.1" @twotalltotems/react-native-otp-input": "^1.3.11",
my current React native version: 0.74.1 It works perfectly for me on both Android and iOS.
Getting the error:
As mentioned in the pinned issue, I installed @react-native-community/clipboard, still facing the same issue. I did yarn cache clean, deleted node_modules and yarn. lock and even then didn't work.
My package.json:
OTPSceen component:
Could you please advise, what am I missing here?
Thanks