Skip to content

Commit 640f58f

Browse files
authored
Update README.md
1 parent 8cc7cfb commit 640f58f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ There is also support for the `box-shadow` shorthand, and this converts into `sh
7171

7272
# API
7373

74-
The API is mostly for implementors. However, the main API may be useful for non-implementors. The main API is,
74+
The API is mostly for implementors. However, the main API may be useful for non-implementors. The main API is an array of `[property, value]` tuples.
7575

7676
```js
7777
import transform from 'css-to-react-native';
@@ -84,7 +84,11 @@ transform([
8484
]); // => { fontFamily: 'Helvetica', ... }
8585
```
8686

87-
For implementors, there is also,
87+
We don't provide a way to get these style tuples in this library, so you'll need to do that yourself. I expect most people will use postCSS or another CSS parser. You should try avoid getting these with `string.split`, as that has a lot of edge cases (colons and semi-colons apearing in comments etc.)
88+
89+
For implementors, there is also a few extra APIs available.
90+
91+
These are for specific use-cases, and most people should just be using the API above.
8892

8993
```js
9094
import { getPropertyName, getStylesForProperty } from 'css-to-react-native';

0 commit comments

Comments
 (0)