tttstudios / react-native-otp-input

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

This plugin is not working in the Expo project (TypeError: Cannot read properties of undefined (reading 'getString') #175

Open sohanpc opened 2 years ago

sohanpc commented 2 years ago

This plugin is not working in the Expo project TypeError: Cannot read properties of undefined (reading 'getString').

AnatuGreen commented 2 years ago

Same issue.

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

Sikandarkhan commented 2 years ago

temporary work around is

  1. "@twotalltotems/react-native-otp-input": "1.3.7",
  2. npm install --save @react-native-community/clipboard
phucngoZigvy commented 2 years ago

@Sikandarkhan's workaround works, just downgrade the package version to 1.3.7

Rananjaya commented 1 year ago

I have same error - TypeError: Cannot read property 'getString' of null

baltagih2 commented 1 year ago

Getting the same error on "@twotalltotems/react-native-otp-input": "^1.3.11",

rizwanatta commented 11 months ago

just for people who are still struggling

try with this "@react-native-community/clipboard": "^1.5.1", "@twotalltotems/react-native-otp-input": "1.3.7",

i was able to make it work on expo 49+

saneeshmaheshwari-kiwi commented 10 months ago

not working in expo web