Skip to content

Commit aafd2b3

Browse files
committed
Don't export getStylesForDecl so we can change the implementation details if needed
1 parent 88f4e4c commit aafd2b3

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,8 @@ transform(`
8686
For implementors, there is also,
8787

8888
```js
89-
import {
90-
getPropertyName,
91-
getStylesForProperty,
92-
getStylesForDecl,
93-
} from 'css-to-react-native';
89+
import { getPropertyName, getStylesForProperty } from 'css-to-react-native';
9490

9591
getPropertyName('border-width'); // => 'borderWidth'
9692
getStylesForProperty('borderWidth', '1 0 2 0'); // => { borderTopWidth: 1, ... }
97-
getStylesForDecl(postcss.decl({
98-
name: 'border-width',
99-
value: '1 0 2 0'
100-
})); // => { borderTopWidth: 1, ... }
10193
```

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const getStylesForProperty = (propName, inputValue) => {
4242

4343
export const getPropertyName = camelizeStyleName;
4444

45-
export const getStylesForDecl = decl =>
45+
const getStylesForDecl = decl =>
4646
getStylesForProperty(getPropertyName(decl.prop), decl.value);
4747

4848
export default (css) => {

0 commit comments

Comments
 (0)