Skip to content

Files

Latest commit

08adcf6 · Mar 9, 2024

History

History
50 lines (37 loc) · 1.22 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.22 KB

scommons-react-native-showcase

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

Almost all examples are from a great book React Native in Action

Screenshots

How to run it in your device

How to Build/Run Showcase App locally using Expo

First, build the application with the following command:

sbt "project scommons-react-native-showcase" fastOptJS

Then, please make sure you have expo-cli installed globally:

npm i expo-cli@6 -g

To run the application locally, use the following command(s):

cd showcase
npm i
npx expo start --ios
#or:
npx expo start --web
#or:
npx expo start --android

How to publish web app

To build web-assets use the following command:

./script/docs_gen_assets.sh

You can check the result by running docs server locally:

./script/docs_server.sh

open http://127.0.0.1:4000/scommons-react-native/