Skip to content

Commit

Permalink
fix(docs): theme import typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Yorsh authored and malashkevich committed Jun 13, 2019
1 parent ce984cf commit 6445a4b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 6445a4b

Please sign in to comment.