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

Typescript error with default import #83

Closed
trongbinh15 opened this issue Sep 4, 2024 · 1 comment · Fixed by #84
Closed

Typescript error with default import #83

trongbinh15 opened this issue Sep 4, 2024 · 1 comment · Fixed by #84
Labels
bug Something isn't working released

Comments

@trongbinh15
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
I use default import same as docs
import Dropdown from "react-native-input-select"
The error happen when typescript do type-checking

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
I use expo.
I think the issue came from package.json, when I change types option to "types": "lib/typescript/src/index.d.ts" the error is gone

@azeezat azeezat mentioned this issue Sep 5, 2024
8 tasks
@azeezat
Copy link
Owner

azeezat commented Sep 5, 2024

@trongbinh15 Thanks for reporting this issue. A new version has been published!

@azeezat azeezat added bug Something isn't working released labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants