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" fastOptJSThen, please make sure you have expo-cli installed globally:
npm i expo-cli@6 -gTo 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 --androidTo build web-assets use the following command:
./script/docs_gen_assets.shYou can check the result by running docs server locally:
./script/docs_server.sh
open http://127.0.0.1:4000/scommons-react-native/