hiranpeiris / react-native-otp-auto-fill

Auto fill OTP library for React Native
MIT License
6 stars 8 forks source link

Module OtpAutoFillViewManager requires main queue setup #9

Open ithustle opened 2 years ago

ithustle commented 2 years ago

Hey there. I think you may considere watch this:

Module OtpAutoFillViewManager requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of
hiranpeiris commented 2 years ago

@ithustle Check the sample application. It works without any error. https://github.com/hiranpeiris/react-native-otp-auto-fill/tree/master/example

ithustle commented 2 years ago

@hiranpeiris, I did exactly what you did, however I still got this warning. Maybe its because in your example you're using RN 0.63.4 version and I'm using 0.64.2

davidcort commented 1 year ago

I am using: "react-native": "0.69.5"

I have the same warning

chamaldesilva commented 1 year ago

I manage to fix this issue using requiresMainQueueSetup method.