Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
kristerkari committed Feb 10, 2018
1 parent d9a244f commit f8867de
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# React Native styling properties

List of known React Native specific styling properties.

## API

To get list of all styling properties supported by React Native:

```js
import { allProps } from "react-native-known-styling-properties";
```

To get list of all styling properties supported by [css-to-react-native](https://github.com/styled-components/css-to-react-native):

```js
import { allRN2CSSProps } from "react-native-known-styling-properties";
```

The result is an array of supported styling properties:

```js
allProps = [
"alignItems",
"alignSelf",
"flex",
"flexDirection",
"flexWrap",
...
]
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-known-styling-properties",
"version": "1.0.0",
"description": "",
"description": "List of known React Native specific styling properties.",
"main": "dist/index.js",
"files": ["dist", "src", "README.md"],
"scripts": {
Expand Down

0 comments on commit f8867de

Please sign in to comment.