TypeError: Cannot read property 'scan' of undefined
jasenkabalac opened this issue · comments
jasenkabalac commented
I'm using your sample app in Expo .
zeroconf.scan('http', 'tcp', 'local.') is not working
jkaravakis commented
I am having the same issue. I am not using Expo and am using React Native v0.61.2 and react-native-zeroconf v0.11.4.
jkaravakis commented
Hey @jasenkabalac restarting my metro bundler worked for me!
Zachary Litvinenko commented
Zachary Litvinenko commented
While when I console.log(zeroconf) it's not undefined or null, and zeroconf.scan is not null either.
But when I add parentheses it throws that error and I don't know what to do.
balthazar commented
Expo doesn't work with native modules, there's plenty of issues about this already