emotion icon indicating copy to clipboard operation
emotion copied to clipboard

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

Open NiuGuohui opened this issue 1 year ago • 0 comments

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

NiuGuohui avatar Jan 31 '24 03:01 NiuGuohui