nativescript-community / nativescript-community/gps
GPS for Javascript not TypeScript
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I am migrating a project to NS7+ that had broken plugins that did not support NS7. I've moved from nativescript-geolocation to @nativescript-community/gps
I'm trying to translate the TS example in to JS, I've not made the move to TS as my app is written in JS and annoyed that all examples tend to use TypeScript rather than JavaScript and the documentation is non existent.
Im setting up GPS using the following:
var gps_master = require("@nativescript-community/gps");
var gps = new gps_master();
But get an error
NativeScript encountered a fatal error: Uncaught TypeError: gps_master is not a constructor
How do I declare GPS and get location values in Javascript to pass to ui-mapbox
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the package's TypeScript example, the CommonJS require shown, and ui-mapbox as the consumer. Compare the TypeScript example with that require and verify how JavaScript should declare GPS and obtain location values; done means a working JavaScript example and documentation that resolves the constructor error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- mobile-dev
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100