Skip to content

Commit d98a911

Browse files
Merge pull request #753 from shoutem/feature/SEEXT-12227-Remove-examples
Remove examples
2 parents af7bf56 + 2b6036d commit d98a911

File tree

106 files changed

+1
-32349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+1
-32349
lines changed

.npmignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ node_modules
44
# Ignore test files
55
*_tests_
66

7-
# Ignore the example apps
8-
examples/RestaurantsApp/
9-
examples/create-react-native-app/
10-
117
# Ignore local/config files
128
.editorconfig
139
.npmignore

README.md

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -20,84 +20,6 @@ All the documentation is available on the [Developer portal](http://shoutem.gith
2020

2121
Join [our community](https://www.facebook.com/groups/shoutem.community/) on Facebook. Also, feel free to ask a question on Stack Overflow using ["shoutem" tag](http://stackoverflow.com/tags/shoutem).
2222

23-
## Examples
24-
25-
To see how Shoutem UI works, you can:
26-
27-
- include the `Examples` component into your React Native app or
28-
- run `Restaurants` app in `examples` folder.
29-
30-
### Examples component
31-
32-
**If you are using Expo, see [this
33-
project](https://github.com/shoutem/ui/blob/develop/examples/create-react-native-app/App.js)
34-
for example usage. Otherwise, follow the steps below.**
35-
36-
Create new React Native project and locate to it:
37-
38-
```bash
39-
$ react-native init HelloWorld && cd HelloWorld
40-
```
41-
42-
Install `@shoutem/ui` in your project:
43-
44-
```bash
45-
$ npm install --save @shoutem/ui
46-
```
47-
48-
Now, simply copy the following to your `App.js` files of the React Native project:
49-
50-
```JavaScript
51-
import React, { PureComponent } from 'react';
52-
import { Examples } from '@shoutem/ui';
53-
54-
export default class App extends PureComponent {
55-
render() {
56-
return (
57-
<Examples />
58-
);
59-
}
60-
}
61-
```
62-
63-
Finally, run the app!
64-
65-
```bash
66-
$ react-native run-ios
67-
```
68-
69-
To see other components, just import them from `@shoutem/ui` and render them.
70-
71-
You can also use standard React Native components in your layouts anywhere you want, but they will not inherit either the theme or the parent styles, so you will need to style them manually.
72-
73-
### Restaurants app
74-
75-
Clone the [Shoutem UI](https://github.com/shoutem/ui) repository:
76-
77-
```bash
78-
git clone https://github.com/shoutem/ui.git
79-
```
80-
81-
Locate to `RestaurantsApp` folder:
82-
83-
```bash
84-
cd ui/examples/RestaurantsApp
85-
```
86-
87-
Install and link dependencies:
88-
89-
```bash
90-
npm install
91-
react-native link
92-
```
93-
94-
Finally, run the app!
95-
96-
```bash
97-
react-native run-ios
98-
react-native run-android
99-
```
100-
10123
## UI Toolkit
10224

10325
Shoutem UI is a part of the [Shoutem UI Toolkit](https://shoutem.github.io/ui/) that enables you to build professional looking React Native apps with ease.

examples/RestaurantsApp/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/RestaurantsApp/.flowconfig

Lines changed: 0 additions & 80 deletions
This file was deleted.

examples/RestaurantsApp/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/RestaurantsApp/.gitignore

Lines changed: 0 additions & 53 deletions
This file was deleted.

examples/RestaurantsApp/.watchmanconfig

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/RestaurantsApp/App.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/RestaurantsApp/__tests__/App.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/RestaurantsApp/android/app/BUCK

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)