Giter VIP home page Giter VIP logo

eastest's Introduction

EAS cli build bug demo

With EAS build on android when press "back" button and open app again quickly will be visible splash (loading) screen, but on classic expo build there is no splash screen on app reopening (apps are not really closed in both cases).

Envs

SDK: 43 (also same problem in SDK 42)

EAS cli: 0.37

EXPO cli: 4.13.0 (with older versions was the same)

Code

Example based on new typescript demo from expo init. In code there is no nothing special, it only using expo-asset module with useAssets hook to preload 3 assets (images).

Assets (images) have big size for better visible effect when starting app. Real apps where I first catched this bug have many small images (~50) so conditions are close.

Reproduce bug

To have two versions of apps (with expo build and EAS build) on same device and switch between them need to do 2 changes in app.json file.

EXPO classic build

Just run expo build:android, choose type apk to build.

EAS build

Change in app.json:

  • App name (line #3):
    "name": "App build test EXPO",

to

    "name": "App build test EAS",
  • App package name (line #29):
      "package": "com.easbuild.tests.expo",

to

      "package": "com.easbuild.tests.eas",

Then run eas build --platform android --profile development

Install these APKs on device and test "back" button behavior: you will see that app created via EAS build will show splash screen on every app reopening where classic build - not.

Video (slowed 2 times)

https://www.youtube.com/watch?v=9PaCMu4TOPU

eastest's People

Contributors

psnet avatar

Watchers

 avatar

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.