Skip to content

Commit

Permalink
readme, fix #51
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Oct 4, 2017
1 parent 08a2082 commit 17ed200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,13 @@ and two other calls will get it from cache.
\[[top](#react-native-extended-stylesheet)\]

### Outline for debug
To outline all components for debug purposes set global `$outline` variable:
It is possible to outline all components that are using EStyleSheet. For that set global `$outline` variable:
```js
EStyleSheet.build({$outline: 1});
```
> Note that components without styles will not be outlined,
because RN [does not support](https://github.com/facebook/react-native/issues/1768) default component styling yet.

To outline particular component set local `$outline` variable:
```js
const styles = EStyleSheet.create({
Expand Down

0 comments on commit 17ed200

Please sign in to comment.