Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Apr 29, 2019
1 parent 30b00bb commit 787ad31
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ the proper dependency resolver to your `build.sbt` settings:
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
```

### How to use it

Note: Almost all examples are from a great book [React Native in Action](https://github.com/dabit3/react-native-in-action)

* Demo Application
* [app](showcase/src/main/scala/scommons/reactnative/showcase/ShowcaseApp.scala) => [tests](showcase/src/test/scala/scommons/reactnative/showcase/ShowcaseAppSpec.scala)
* [live expo link](https://expo.io/@viktorpodzigun/showcase) => [How to Build and Run](showcase/README.md)

* Example Components:
* Styling
* [Border Style](showcase/src/main/scala/scommons/reactnative/showcase/style/BorderStyleDemo.scala) => [tests](showcase/src/test/scala/scommons/reactnative/showcase/style/BorderStyleDemoSpec.scala)
* [Border Radius](showcase/src/main/scala/scommons/reactnative/showcase/style/BorderRadiusDemo.scala) => [tests](showcase/src/test/scala/scommons/reactnative/showcase/style/BorderRadiusDemoSpec.scala)
* [Margin](showcase/src/main/scala/scommons/reactnative/showcase/style/MarginStyleDemo.scala) => [tests](showcase/src/test/scala/scommons/reactnative/showcase/style/MarginStyleDemoSpec.scala)
* [Padding](showcase/src/main/scala/scommons/reactnative/showcase/style/PaddingStyleDemo.scala) => [tests](showcase/src/test/scala/scommons/reactnative/showcase/style/PaddingStyleDemoSpec.scala)
* [Position](showcase/src/main/scala/scommons/reactnative/showcase/style/PositionStyleDemo.scala) => [tests](showcase/src/test/scala/scommons/reactnative/showcase/style/PositionStyleDemoSpec.scala)
* [Images](showcase/src/main/scala/scommons/reactnative/showcase/style/ProfileCard.scala) => [tests](showcase/src/test/scala/scommons/reactnative/showcase/style/ProfileCardSpec.scala)

You can find more examples [here](https://github.com/scommons/scommons-examples-mobile)

### How to Build

To build and run all the tests use the following command:
Expand Down
10 changes: 8 additions & 2 deletions showcase/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@

## scommons-react-native-showcase
Example usages of react-native components/modules written in Scala.js
Example usages of react-native components/modules written in Scala.js.

#### How to Build/Run Showcase App using Expo
Almost all examples are from a great book [React Native in Action](https://github.com/dabit3/react-native-in-action)

### How to run it in your device

[live expo link](https://expo.io/@viktorpodzigun/showcase)

#### How to Build/Run Showcase App locally using Expo

First, build the application with the following command:
```bash
Expand Down

0 comments on commit 787ad31

Please sign in to comment.