aboozaid / react-native-wifi-hotspot

A react-native implementation for handling hotspot requests and make it easier to communicate with peers!
ISC License
40 stars 21 forks source link

Cannot find symbol new HotspotModule() #21

Open vamsig7 opened 4 years ago

vamsig7 commented 4 years ago

During run time it is throwing an error can't find symbol " new HotspotModule()". Just from my end "import reactnative.hotspot.HotspotPackage" this statement is importing HotspotPackage and in the later part it is adding "new HotspotModule()" instead of "new HotspotPackage()". Later tried to manually change this but during runtime RN is reverting them .

RN - 0.61.5 SDK 26 Screenshot from 2020-02-16 23-33-28 Screenshot from 2020-02-16 23-33-33 Screenshot from 2020-02-16 23-33-41

Miccy commented 4 years ago

Hi, I have the same issue. Here is the solution. This worked for me.

https://github.com/luandro/huiom/commit/c5f3dd22c9ebae805e09de6c45660fc415569e9f