{"library":"css-to-react-native","type":"library","category":null,"description":"css-to-react-native is a utility library that converts standard CSS-like style declarations into React Native stylesheet objects. Currently at version 3.2.0, it is actively maintained by the styled-components organization, indicating a stable release cadence. This library is essential for bridging web CSS styling conventions with React Native's unique styling model, automatically handling unit conversions, shorthand expansions, and platform-specific property transformations (e.g., `text-shadow-offset` to `{ width, height }`). A key differentiator is its ability to handle complex transformations like reversing `transform` order for React Native compatibility and expanding various shorthands such as `font` and `margin`. It focuses on transforming already parsed CSS property-value pairs, delegating the initial CSS parsing to external tools like PostCSS.","language":"javascript","status":"active","version":"3.2.0","tags":["javascript","styled-components","React","ReactNative","styles","CSS","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install css-to-react-native","imports":["import transform from 'css-to-react-native';","import { getPropertyName } from 'css-to-react-native';","import { getStylesForProperty } from 'css-to-react-native';"]},{"cmd":"yarn add css-to-react-native","imports":[]},{"cmd":"pnpm add css-to-react-native","imports":[]}],"homepage":null,"github":"https://github.com/styled-components/css-to-react-native","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css-to-react-native","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/css-to-react-native/compatibility"}}