-
Notifications
You must be signed in to change notification settings - Fork 959
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(ui): drawer component * Revert "feat(template): add ui-kitten template projects"
- Loading branch information
Showing
33 changed files
with
800 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Install UI Kitten | ||
|
||
If you don't have any code yet, please consider checking <a href="https://facebook.github.io/react-native/docs/getting-started" target="_blank">React Native Getting Started</a> documentation for help creating your app. | ||
|
||
<hr> | ||
|
||
## Installation | ||
|
||
We recommend to develop React Native with expo-cli, you can install it with the following command. | ||
|
||
```bash | ||
npm i -g expo-cli | ||
``` | ||
|
||
<hr> | ||
|
||
## Create a New Project | ||
|
||
A new project can be created using Expo CLI tools. | ||
|
||
```bash | ||
expo init PROJECT-NAME | ||
``` | ||
<hr> | ||
|
||
## Install UI Kitten and Eva Design System | ||
|
||
```bash | ||
npm i react-native-ui-kitten @eva-design/eva | ||
``` | ||
|
||
<hr> | ||
|
||
## Configure Application Root | ||
|
||
At this step you have everything in place, let's configure UI Kitten to be used in your app. | ||
|
||
```js | ||
import * as React from 'react'; | ||
import { mapping, light as lightTheme } from '@eva-design/eva'; | ||
import { ApplicationProvider, Layout } from 'react-native-ui-kitten'; | ||
|
||
const App = () => ( | ||
<ApplicationProvider | ||
mapping={mapping} | ||
theme={lightTheme}> | ||
<Layout style={{flex: 1}}/> | ||
</ApplicationProvider> | ||
); | ||
|
||
export default App; | ||
``` | ||
|
||
That's it. UI Kitten is ready now. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.