Skip to content

Commit

Permalink
Merge 9010d97 into f0234bf
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh committed Jun 12, 2019
2 parents f0234bf + 9010d97 commit ee497c7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -41,14 +41,14 @@ Modify your application root:

```jsx
import React from 'react';
import { mapping, theme } from '@eva-design/eva';
import { mapping, light as lightTheme } from '@eva-design/eva';
import { ApplicationProvider } from 'react-native-ui-kitten';
import { Application } from './path-to/application.component';

export default App = () => (
<ApplicationProvider
mapping={mapping}
theme={theme}
theme={lightTheme}
<Application/>
</ApplicationProvider>
);
Expand Down
4 changes: 2 additions & 2 deletions docs/src/guides/theme-switching.md
Expand Up @@ -9,7 +9,7 @@ through the property into the `ApplicationProvider`.
### Changing Theme Example

```tsx
import { mapping, theme } from '@eva-design/eva';
import { mapping, light as lightTheme } from '@eva-design/eva';
import { customTheme } from './path-to/custom-theme;
import {
ApplicationProvider,
Expand All @@ -24,7 +24,7 @@ interface AppState {
export default class App extends React.Component<any, State> {

public state: State = {
theme: theme,
theme: lightTheme,
};

private changeTheme = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/guides/theme-system.md
Expand Up @@ -25,7 +25,7 @@ npm i @eva-design/eva
### Applying Theme System

```tsx
import { mapping, theme } from '@eva-design/eva';
import { mapping, light as lightTheme } from '@eva-design/eva';
import { ApplicationProvider } from 'react-native-ui-kitten';
import { Application } from './path-to/root.component';

Expand All @@ -35,7 +35,7 @@ export default class App extends React.Component {
return (
<ApplicationProvider
mapping={mapping}
theme={theme}>
theme={lightTheme}>
<Application/>
</ApplicationProvider>
);
Expand Down
4 changes: 2 additions & 2 deletions docs/src/guides/theme-using-mapping.md
Expand Up @@ -121,7 +121,7 @@ All that you have to do is to provide a custom mapping to ApplicationProvider.

```tsx
import React from 'react';
import { mapping, theme } from '@eva-design/eva';
import { mapping, light as lightTheme } from '@eva-design/eva';
@import {
ApplicationProvider,
ApplicationProviderProps,
Expand All @@ -135,7 +135,7 @@ export default class App extends React.Component<ApplicationProviderProps> {
return (
<ApplicationProvider
mapping={mapping}
theme={theme}
theme={lightTheme}
customMapping={customMapping}>
<Application/>
</ApplicationProvider>
Expand Down
Expand Up @@ -54,7 +54,7 @@ interface State {
*
* ```
* import React from 'react';
* import { mapping, theme } from '@eva-design/eva';
* import { mapping, light as lightTheme } from '@eva-design/eva';
* import { ApplicationProvider } from 'react-native-ui-kitten';
* import { Application } from './path-to/root.component';
*
Expand All @@ -64,7 +64,7 @@ interface State {
* return (
* <ApplicationProvider
* mapping={mapping}
* theme={theme}>
* theme={lightTheme}>
* <Application/>
* </ApplicationProvider>
* );
Expand Down

0 comments on commit ee497c7

Please sign in to comment.