emotion
emotion copied to clipboard
[React-Native] The `@emotion/native` does not seem to be compiled as a style object
Current behavior:
This is my code:
This is the compilation result(in production):
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