CSS to React Native
Turn web CSS into React Native styles (StyleSheet, plain object or styled-components) and see which properties are unsupported. Private.
CSS
Stays in your browserReact Native styles
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to React Native Shadow Generator or px to rem Converter.
Free Online CSS to React Native
Paste CSS from a web page and get styles for a mobile app. Anything that mobile cannot do, such as grid, float or hover, is listed with the reason instead of being dropped silently. It gives developers a quick browser-based way to solve a focused css to react native task before moving the result into a project.
How to use CSS to React Native
Paste your code in the box on the left, or open a file, then press Convert. Pick the output you want. Numbers lose their px, names become camelCase and rem is counted as 16px.
Common mistakes
- Expecting percentage heights and vh/vw units to work: use flex or useWindowDimensions.
- Pasting rules with several class names in one selector: use one class per rule.