Emotion: No TypeScript types for @emotion/native

Created on 24 Apr 2020  路  3Comments  路  Source: emotion-js/emotion

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 :)

React Native TypeScript feature request

Most helpful comment

What @philscott-dev said. The last big change is about to land in v11 - https://github.com/emotion-js/emotion/pull/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.

All 3 comments

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

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

What @philscott-dev said. The last big change is about to land in v11 - https://github.com/emotion-js/emotion/pull/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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DarkoKukovec picture DarkoKukovec  路  28Comments

RoystonS picture RoystonS  路  50Comments

Andarist picture Andarist  路  54Comments

jfrolich picture jfrolich  路  29Comments

JustinTRoss picture JustinTRoss  路  26Comments