Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with GPS provided by android and declaration file issue #3

Open
davepaiva opened this issue Apr 5, 2020 · 4 comments
Open

Comments

@davepaiva
Copy link

davepaiva commented Apr 5, 2020

Hey can this work with the GPS on the android phone itself? If so, I've tried the library by using the example but unfortunately it does not console.log anything.
Could you please let me know what I am doing wrong here?

Also I am getting the following error:

Could not find a declaration file for module 'react-native-nmea-library'. '/home/user/Desktop/Project/node_modules/react-native-nmea-library/index.js' implicitly has an 'any' type.

Any help would be appreciated,
Thanks

@davepaiva davepaiva changed the title Working with GPS provided by android Working with GPS provided by android and declaration file issue Apr 5, 2020
@ivanstan
Copy link
Owner

ivanstan commented Apr 5, 2020

Tip 1:
Put:

declare module 'react-native-nmea-library';

into your *.d.ts file

Tip 2:
Set noImplicitAny to false in your tsconfig.json

Let me know if any of these helped.

@davepaiva
Copy link
Author

Thanks for the quick response.
I'm actually coding in JavaScript, and running the React-Native app on a Motorola Power One phone running Android 10. Can you specify what directory the tsconfig.json or *.d.ts files should be in?

Here a pic of the message:
Screenshot from 2020-04-05 20-47-59

@ivanstan
Copy link
Owner

ivanstan commented Apr 5, 2020

Can you send me list of files on your project's root directory?

@davepaiva
Copy link
Author

Sure, here's the list:
Screenshot from 2020-04-05 21-21-34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants