Actualizar target versión de Android o iOS en React Native Expo

Tiempo de lectura: < 1 minuto

html
Copy code
Reading Time: < 1 minute

Hello, today we will see how we can update the target version of Android / iOS using React Native. This way, we can upgrade to version 33, which Google Play requires for app updates starting from August 31.

Inside our React Native project, we add this dependency:

npx expo install expo-build-properties

With this library, we can update the binary’s build properties.

Now we will have to add the following to our app.js

{
  "expo": {
    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 33,
            "targetSdkVersion": 33,
            "buildToolsVersion": "33.0.0"
          },
          "ios": {
           html
Copy code
Reading Time: < 1 minute

Hello, today we will see how we can update the target version of Android / iOS using React Native. This way, we can upgrade to version 33, which Google Play requires for app updates starting from August 31.

Inside our React Native project, we add this dependency:

npx expo install expo-build-properties

With this library, we can update the binary's build properties.

Now we will have to add the following to our app.js

{
  "expo": {
    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 33,
            "targetSdkVersion": 33,
            "buildToolsVersion": "33.0.0"
          },
          "ios": {
            "deploymentTarget": "13.0"
          }
        }
      ]
    ]
  }
}

In this case, we specify version 33 to make it compatible.

To apply the changes, we will have to run the following command:

expo prebuild

And it will update the dependencies.

Leave a Comment