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
Typescript example doesn't work in .ts files #382
Comments
Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/goatandsheep/react-native-dotenv/issues/382 |
Shouldn't you be tipping me since I posted the solution? 🤔 |
Unfortunately I'm broke right now but this is very very helpful! I will add this to the documentation. Thank you so much! Maybe I need to reword the issue bot to indicate that I'm open to paid consulting to fix issues instead of what it currently says. |
Sorry I just thought it was a funny reply, didn't mean anything by it :) |
So to be clear, the types definition file should be |
Describe the bug
When adding the library and following the description of how to use it for typescript, the module fails to load when running on the android emulator. However, changing the file extension from .ts => .tsx does fix it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Android app does not crash
Screenshots
N/a
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Changing the file extension to .tsx fixes the issue
The text was updated successfully, but these errors were encountered: