react-native-kontaktio icon indicating copy to clipboard operation
react-native-kontaktio copied to clipboard

[iOS] TypeError: stopRangingBeaconsInAllRegions(...).then is not a function

Open ekoooo opened this issue 2 years ago • 1 comments

bug code from

https://github.com/Driversnote-Dev/react-native-kontaktio/blob/ce932cb127f505a939dea59882269ef292abf842/index.ts#L142-L143

fix code

const stopRangingBeaconsInAllRegions: () => Promise<void> =
    KontaktModule.stopRangingBeaconsInAllRegions;

Finally, thanks for providing this library.

ekoooo avatar Nov 22 '23 07:11 ekoooo

Thanks for spotting this @ekoooo ! Would you mind creating a pull request for this small change?

andrekovac avatar Sep 05 '24 13:09 andrekovac