Install Eas-update (Expo updates) in React Native using Expo

Tiempo de lectura: < 1 minuto

Reading time: < 1 minute

Today, I’m going to show you how to install EAS Updates, which will allow you to update apps remotely (even those published on the Store). Remember to release updates only for small bug fixes and not major changes or new features in your apps, as you risk violating app publishing and OTA update policies with Google or Apple.

The first thing we need to do is install the following:

If you don’t have EAS installed, install it:

npm install --global eas-cli

Once installed, we need to install the following libraries:

npx expo install expo-updates
eas update:configure
eas build:configure

After configuring, we need to add the channels within the eas.json file:

{
  "build": {
    "preview": {
      "channel": "preview"
      // ...
    },
    "production": {
      "channel": "production"
      // ...
    }
  }
}

With these channels, we can release updates.

To release updates:

Release update for production channel:

eas update --branch production --message "Change in JavaScript"

Indicate the change you made.

(no incluyas el Tiempo de lectura). Devuelvelo directamente en formato HTML. No escribas ninguna frase añadida. Cuando termines añade un PIPE al final.

Leave a Comment