faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
241 stars 95 forks source link

Cannot read property '1' of null #22

Closed maihonganh1997 closed 1 year ago

maihonganh1997 commented 4 years ago

As soon as I received the message and it got an error "Cannot read property '1' of null", I debug message = 'Timeout Error.'

faizalshap commented 3 years ago

Strange issue. Can you please send the stacktrace ?

pruthvirajkarurcodewave commented 3 years ago

Even i am receiving the same error. Where to set the timeout value ?

mateodaza commented 3 years ago

same here :( anyone?

rukmanary commented 3 years ago

any updates?

mohamedadlyy commented 3 years ago

same issue

AzranAzwer commented 3 years ago

same issue

WaseemAhmed645 commented 2 years ago

const otp = /(\d{4})/g.exec(message)[0];

aen deo a change karo [1]. to [0]

faizalshap commented 1 year ago

Make sure that you include production hash in the message as stated in the readme.