adkandari / react-native-mock-location-detector

**Only For Android**. Detects if the device is using mock location app to spoof it's real location. In that case user will be prompted to fix the mock location settings first before using the app.
27 stars 24 forks source link

Could not find a declaration file for module 'react-native-mock-location-detector'. #5

Closed Edgamer97 closed 3 years ago

Edgamer97 commented 4 years ago

When I import the module I get the above mentioned error. It seems to be a typescript based error but I am not using typescript but just javascript based project. Any solution for this?

xDAnkit commented 3 years ago

@Edgamer97 - Added TypeScript support in this PR : https://github.com/adkandari/react-native-mock-location-detector/pull/6 @adkandari - Please have a look at PR to update

adkandari commented 3 years ago

Thank you so much @xDAnkit . I have approved the PR. 🙌

@Edgamer97 let me confirm if this works and I will close the ticket.

xDAnkit commented 3 years ago

Thank you @adkandari for merging the PR. Please do release an updated NPM package for the same for react-native-mock-location-detector

Once done please let me know and i'll test again once again at my end.

RahafShayeb commented 3 years ago

I'm still having the same problem when I import the module, any solutions?

xDAnkit commented 3 years ago

@RahafShayeb - I have found that the updated code is not yet published on npm. Please update your package.json and point the current plugin to https://github.com/adkandari/react-native-mock-location-detector.git

Ex : "react-native-mock-location-detector": "https://github.com/adkandari/react-native-mock-location-detector.git"

xDAnkit commented 3 years ago

@adkandari - Can you please update your npm package

adkandari commented 3 years ago

Thanks. I will do it this week.

On Sat, 13 Mar, 2021, 10:21 pm Ankit Jain, @.***> wrote:

@adkandari https://github.com/adkandari - Can you please update your npm package

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/adkandari/react-native-mock-location-detector/issues/5#issuecomment-798621107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLLBQJLEB6GQPGYLQGEBW3TDOJYFANCNFSM4TY6BOTA .

adkandari commented 3 years ago

@adkandari - Can you please update your npm package

Hey @xDAnkit , so sorry for late update. I have pushed the latest update on npm