-
Notifications
You must be signed in to change notification settings - Fork 948
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(template): add ui-kitten template projects
- Loading branch information
Showing
21 changed files
with
1,465 additions
and
1,153 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 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,37 @@ | ||
# Add into existing project | ||
|
||
If you already have an existing code base, you're able to give UI Kitten a try as simple as `npm install`. Please refer to [Start a new App Guide](guides/start-a-new-app) if you don't have any code yet. | ||
|
||
<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. | ||
In your **App.js**: | ||
|
||
```js | ||
import React from 'react'; | ||
import { mapping, light as lightTheme } from '@eva-design/eva'; | ||
import { ApplicationProvider } from 'react-native-ui-kitten'; | ||
import { RootComponent } from '../path-to/root.component'; // <-- Import your application entry point | ||
|
||
const App = () => ( | ||
<ApplicationProvider | ||
mapping={mapping} | ||
theme={lightTheme}> | ||
<RootComponent /> | ||
</ApplicationProvider> | ||
); | ||
|
||
export default App; | ||
``` | ||
|
||
That's it. UI Kitten is ready now. |
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,30 @@ | ||
# Starting a new App | ||
|
||
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 | ||
|
||
First of all, you should have React Native CLI installed. | ||
|
||
```bash | ||
npm i -g react-native-cli | ||
``` | ||
|
||
<hr> | ||
|
||
## Create a New Project | ||
|
||
A new project can be created using React Native CLI tools ant UI Kitten template. | ||
|
||
```bash | ||
react-native init --template ui-kitten | ||
``` | ||
|
||
Or, if you want to init with TypeScript: | ||
```bash | ||
react-native init --template ui-kitten-typescript | ||
``` | ||
|
||
That's it. UI Kitten is ready now. For the next steps, simply follow command line instructions. |
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
Oops, something went wrong.