Example usages of react-native components/modules written in Scala.js.
Almost all examples are from a great book React Native in Action
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
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/