Skip to content

Commit

Permalink
Merge pull request #143 from MichaelBorde/patch-1
Browse files Browse the repository at this point in the history
isLightTheme renamed to invertTheme
  • Loading branch information
Dean177 committed Dec 5, 2017
2 parents cd58e2f + 121ae3e commit ae81411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -36,7 +36,7 @@ This component now uses [react-base16-styling](https://github.com/alexkuz/react-
- [base16](http://chriskempson.github.io/base16) theme data. [The example theme data can be found here](https://github.com/gaearon/redux-devtools/tree/75322b15ee7ba03fddf10ac3399881e302848874/src/react/themes).
- object that contains style objects, strings (that treated as classnames) or functions. A function is used to extend its first argument `{ style, className }` and should return an object with the same structure. Other arguments depend on particular context (and should be described here). See [createStylingFromTheme.js](https://github.com/alexkuz/react-native-json-tree/blob/feature-refactor-styling/src/createStylingFromTheme.js) for the list of styling object keys. Also, this object can extend `base16` theme via `extend` property.

Every theme has a light version, which is enabled with `isLightTheme` prop.
Every theme has a light version, which is enabled with `invertTheme` prop.

```jsx
const theme = {
Expand All @@ -60,7 +60,7 @@ const theme = {
base0F: '#cc6633'
};

<JSONTree data={data} theme={theme} isLightTheme={false} />
<JSONTree data={data} theme={theme} invertTheme={false} />

```

Expand Down

0 comments on commit ae81411

Please sign in to comment.