Giter Club home page Giter Club logo

Comments (7)

jesseruder avatar jesseruder commented on April 28, 2024 2

We support offline development with exp. Use exp start --offline

from expo.

terribleben avatar terribleben commented on April 28, 2024 1

Hi, is there a reason you don't want to publish to Exponent? Publishing is the mechanism that solves your problem:

  1. It puts your JS bundle on our server so that all existing users of your app can get the newest version of your code.
  2. If you make a standalone app, it also rolls the JS bundle into your binary so the standalone app loads offline.

Even the standalone app will still continue fetching updates to your published JS when it has an internet connection. All versions of Exponent will cache the newest JS bundle so it's available next time they don't have an internet connection.

Serving from XDE is solely intended for development. When you're ready to share the app, that's what publishing is for. Hopefully that all makes sense.

from expo.

abejfehr avatar abejfehr commented on April 28, 2024 1

This really sucks. I want to develop an app for personal use, not to distribute on the app store (at least, not yet). It's one that I'd like to be able to use independently of a computer, but there's seemingly no way I can package it for just my phone.

I tried exp build:ios but that doesn't work because I have 2FA enabled on my Apple ID. exp start --offline doesn't seem to load the app when my computer is off either.

Is there a way I can (preferably without authenticating anywhere) just build the app for personal use?

Edit: I just learned that exp detach is exactly what I was looking for. It generates project folders which can be open/built for offline use

from expo.

brentvatne avatar brentvatne commented on April 28, 2024

@hwaterke - you can also publish your app with the privacy setting "unlisted" - https://docs.getexponent.com/versions/v13.0.0/guides/configuration.html#privacy - and nobody will be able to find your app unless they know the URL (security by obscurity). At some point in the future we will also support entirely "private" apps, where you must be explicitly granted permission by the creator in order to use it, but we don't have that yet so "unlisted" is your best bet.

from expo.

johnsonthedev avatar johnsonthedev commented on April 28, 2024

I share hwaterke's request. I also discovered that I need an active connection to Exponent servers. I understand the benefit of publishing the app to earlier testers in beta phase but I would prefer a pure offline experience during development. For now, I quit using exponent because of missing offline functionality.

from expo.

theronic avatar theronic commented on April 28, 2024

Please add something in the auth CLI output about the --offline switch, or if it could "just work" but warn about trying to go online instead of not starting.

I was bitten by this when I wanted to demo an Expo app during a design meeting, and the WiFi was spotty. I was unable to demo my app because Expo insists on logging in.

from expo.

kevin-williams avatar kevin-williams commented on April 28, 2024

I wanted to work on my app offline on my laptop (actually in the car on 7 hr drives). I figured out a way to do it.

http://javascriptrambling.blogspot.com/2018/03/running-expo-offline.html

I actually use this on my desktop too as it eliminates some of the firewall issues I was experiencing because of our crazy network. I now only use Expo XDE to publish.

from expo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.