UNPKG

react-x-styled

Version:

Cross-platform functions to style components in React and React Native.

31 lines (20 loc) 868 B
# react-x-styled [![npm](https://img.shields.io/npm/v/react-x-styled.svg)](https://www.npmjs.com/package/react-x-styled) [![npm](https://img.shields.io/npm/dt/react-x-styled.svg)](https://www.npmjs.com/package/react-x-styled) [![npm](https://img.shields.io/npm/l/react-x-styled.svg)](https://github.com/negativetwelve/react-x/blob/master/LICENSE) Cross-platform functions to style components in React and React Native. ## Getting Started Install `react-x-styled` using `yarn`: ```shell yarn add react-x-styled ``` ## Usage ```javascript import Styled from 'react-x-styled'; const Title = Styled.Text` font-size: 16px; text-align: center; `; ``` ## Contributing If you have any ideas on how this module could be better, [create an Issue](https://github.com/negativetwelve/react-x/issues) or [submit a PR](https://github.com/negativetwelve/react-x/pulls).