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

[React-Native] The @emotion/native does not seem to be compiled as a style object #3154

Open
NiuGuohui opened this issue Jan 31, 2024 · 0 comments

Comments

@NiuGuohui
Copy link

Current behavior:

This is my code:
image

This is the compilation result(in production):
image

To reproduce:

I installed and used the babel plugin according to the documentation:

module.exports = { presets: ['module:@react-native/babel-preset'], plugins: [ '@emotion', ], };

Expected behavior:

I expect the style string to be compiled into an RN style object.

Environment information:

  • react version: 18.2.0
  • @emotion/react version: 11.11.3
  • @emotion/native version: 11.11.0
  • @emotion/babel-plugin version: 11.11.0
  • react-native version: 0.73.2
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

1 participant