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

No TypeScript types for @emotion/native #1851

Closed
ngirardin opened this issue Apr 24, 2020 · 3 comments
Closed

No TypeScript types for @emotion/native #1851

ngirardin opened this issue Apr 24, 2020 · 3 comments

Comments

@ngirardin
Copy link

Current behavior:

Hi guys, I'm using Typescript and it seems that VSCode can't find the types for @emotion/native.

I've tested on macOS and Windows, looked in closed issues and on the web but it seems that I'm the only having this issue.

To reproduce:

npx react-native init ReactNativeEmotion --template react-native-template-typescript
yarn add @emotion/core @emotion/native 

Screenshot 2020-04-24 at 09 32 24

Expected behavior:

VSCode display the types like with the @emotion/core package.

Environment information:

    "@emotion/core": "^10.0.28",
    "@emotion/native": "^10.0.27",
    "react": "16.11.0",
    "react-native": "0.62.2"

Thanks for your help :)

@TheRohitSharma
Copy link

@ngirardin Same issue, but I believe it's because there aren't any types: https://github.com/emotion-js/emotion/tree/master/packages/native

@philscott-dev
Copy link

They're available via @emotion/native@^11.0.0-next.12. Hopefully v11 gets released soon.

@Andarist
Copy link
Member

What @philscott-dev said. The last big change is about to land in v11 - #1817 . After that, I will have to go through all issues and PRs but I don't expect many new things popping up to do before the final release - there still might be some minor stuff to do. You can track progress here: https://github.com/emotion-js/emotion/milestone/1

Going to close this as we don't plan to backport those typings to v10. I hope you understand.

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

No branches or pull requests

4 participants