An error occurred
Type Error: null is not an object (evaluating KontakModule.stopDiscovery')
because
import Kontakt, { KontaktModule } from 'react-native-kontaktio';
after installing 'react-native-kontaktio'
What I have tried and it didn't work out:
- react-native link (auto link) and pod install
- react-native link react-native-kontaktio (manual link) and pod install
- Manually link Kontakt.io SDK by following steps written on this website https://github.com/Driversnote-Dev/react-native-kontaktio/blob/HEAD/docs/setup.ios.md
Version
- react: 16.9.0
- react-native-cli: 2.0.1
- react-native: 0.61.5
- react-native-kontaktio: 2.7.0
I have tried using this library on Android and it worked perfectly. I really need help on this because I'm just a year 2 student and I need to add a feature on an app to scan for beacons nearby as soon as possible. I have no clue why does this happens but the problem is probably due to linking and compiling libraries because it is saying that a function imported is null (I tried to comment out each function one by one and I can conclude that all of the functions are null.