Skip to content

Commit

Permalink
Merge pull request #755 from shoutem/release/5.5.0
Browse files Browse the repository at this point in the history
Release/5.5.0
  • Loading branch information
Definitely-Not-Vlad authored Oct 11, 2022
2 parents f262576 + 44ab50a commit 20b641d
Show file tree
Hide file tree
Showing 109 changed files with 13 additions and 32,357 deletions.
4 changes: 0 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ node_modules
# Ignore test files
*_tests_

# Ignore the example apps
examples/RestaurantsApp/
examples/create-react-native-app/

# Ignore local/config files
.editorconfig
.npmignore
Expand Down
78 changes: 0 additions & 78 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,84 +20,6 @@ All the documentation is available on the [Developer portal](http://shoutem.gith

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).

## Examples

To see how Shoutem UI works, you can:

- include the `Examples` component into your React Native app or
- run `Restaurants` app in `examples` folder.

### Examples component

**If you are using Expo, see [this
project](https://github.com/shoutem/ui/blob/develop/examples/create-react-native-app/App.js)
for example usage. Otherwise, follow the steps below.**

Create new React Native project and locate to it:

```bash
$ react-native init HelloWorld && cd HelloWorld
```

Install `@shoutem/ui` in your project:

```bash
$ npm install --save @shoutem/ui
```

Now, simply copy the following to your `App.js` files of the React Native project:

```JavaScript
import React, { PureComponent } from 'react';
import { Examples } from '@shoutem/ui';

export default class App extends PureComponent {
render() {
return (
<Examples />
);
}
}
```

Finally, run the app!

```bash
$ react-native run-ios
```

To see other components, just import them from `@shoutem/ui` and render them.

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.

### Restaurants app

Clone the [Shoutem UI](https://github.com/shoutem/ui) repository:

```bash
git clone https://github.com/shoutem/ui.git
```

Locate to `RestaurantsApp` folder:

```bash
cd ui/examples/RestaurantsApp
```

Install and link dependencies:

```bash
npm install
react-native link
```

Finally, run the app!

```bash
react-native run-ios
react-native run-android
```

## UI Toolkit

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.
Expand Down
2 changes: 1 addition & 1 deletion components/DropDownMenu/DropDownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class DropDownMenu extends PureComponent {
<View style={style.horizontalContainer}>
<Button onPress={this.collapse} style={style.selectedOption}>
{showSelectedOption && <Text>{selectedOption[titleProperty]}</Text>}
<Icon name={iconName} />
<Icon name={iconName} style={style.icon} />
</Button>
</View>
) : null;
Expand Down
8 changes: 4 additions & 4 deletions components/NumberInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ class NumberInput extends PureComponent {
return (
<View style={style.container} styleName="horizontal">
<Button
style={style.button}
style={[style.button, style.buttonLeft]}
styleName="secondary"
onPress={this.decreaseValue}
>
<Icon name="minus-button" style={style.icon} />
<Icon name="minus-button" style={[style.icon, style.iconLeft]} />
</Button>
<View style={style.inputContainer} styleName="horizontal">
<TextInput
Expand All @@ -80,11 +80,11 @@ class NumberInput extends PureComponent {
/>
</View>
<Button
style={style.button}
style={[style.button, style.buttonRight]}
styleName="secondary"
onPress={this.increaseValue}
>
<Icon name="plus-button" style={style.icon} />
<Icon name="plus-button" style={[style.icon, style.iconRight]} />
</Button>
</View>
);
Expand Down
8 changes: 6 additions & 2 deletions components/ShareButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ShareButton extends PureComponent {
onShare() {
const { title, message, url } = this.props;

Share.share({
return Share.share({
title,
// URL property isn't supported on Android, so we are
// including it as the message for now.
Expand All @@ -34,7 +34,11 @@ class ShareButton extends PureComponent {
}

render() {
const { animationName, iconProps, ...otherProps } = this.props;
const { animationName, iconProps, url, ...otherProps } = this.props;

if (!url) {
return null;
}

return (
<Button onPress={this.onShare} {...otherProps}>
Expand Down
6 changes: 0 additions & 6 deletions examples/RestaurantsApp/.buckconfig

This file was deleted.

80 changes: 0 additions & 80 deletions examples/RestaurantsApp/.flowconfig

This file was deleted.

1 change: 0 additions & 1 deletion examples/RestaurantsApp/.gitattributes

This file was deleted.

53 changes: 0 additions & 53 deletions examples/RestaurantsApp/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion examples/RestaurantsApp/.watchmanconfig

This file was deleted.

19 changes: 0 additions & 19 deletions examples/RestaurantsApp/App.js

This file was deleted.

10 changes: 0 additions & 10 deletions examples/RestaurantsApp/__tests__/App.js

This file was deleted.

55 changes: 0 additions & 55 deletions examples/RestaurantsApp/android/app/BUCK

This file was deleted.

Loading

0 comments on commit 20b641d

Please sign in to comment.