januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
359 stars 416 forks source link

Cannot set property 'DIRECTION' of undefined #130

Open hasithaWalpola opened 3 years ago

hasithaWalpola commented 3 years ago

I got this error when I import this library. Type Error: Cannot set property 'DIRECTION' of undefined

yayidg22 commented 3 years ago

Hi i have the same error but now i resolve the problem is i used expo and expo metro bundler is not compatible with native modules its hard to test but you need create a Release Apk with android studio of your project and testing

lntoan commented 3 years ago

remove and install again

mixermat99 commented 3 years ago

i have the same issue

usman1579 commented 2 years ago

i am facing the same error on IOS

mohamedsalehamin commented 2 years ago

i have the same issue

sahil-ows commented 1 year ago

I'm facing the same issue in ios

sami-sy commented 1 year ago

same issue for me, using react native cli "react-native": "0.66.3", "react-native-bluetooth-escpos-printer": "^0.0.5". android is working fine, it's just the ios.