expo-template-scala
This template sets up a simple React Native application written in Scala through [Scala.js](https://www.scala-js.org), [Slinky](https://slinky.dev), and [Expo](https://expo.io).
Last updated 2 months ago by shadaj .
Original npm · Tarball · package.json
$ cnpm install expo-template-scala 
SYNC missed versions from official npm registry.

Scala.js + Slinky Expo Template

This template sets up a simple React Native application written in Scala through Scala.js, Slinky, and Expo.

Installation

Install the Expo CLI:

$ npm install -g expo-cli

Use the template

$ expo init --template expo-template-scala

Building Apps

Once you've created your project, first compile your Scala code to JavaScript by running

$ sbt fastOptJS

Then, launch the app with Expo

$ npm start

Production Bundles

To create a minified app, first build an optimized Scala.js bundle

$ sbt fullOptJS

Then, go to App.js and uncomment module.exports = require("./target/scala-2.12/app-opt.js").app; in order to enable the production bundle. Finally, switch Expo to production mode to load your production app.

Ejecting

If you need to develop your app without depending on Expo, you can eject at any time by running npm run eject. This gives you the option to either eject to a "bare" project that uses React Native's build tooling or to an unmanaged ExpoKit project that still uses Expo but lets you add in custom native dependencies.

Current Tags

  • 35.0.0-0                                ...           latest (2 months ago)

4 Versions

  • 35.0.0-0                                ...           2 months ago
  • 34.0.1-1                                ...           4 months ago
  • 34.0.1                                ...           4 months ago
  • 33.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |