Skip to main content

React Native Components v6.0.0

· 2 min read

Updates the Android build setup for Expo SDK 57 and raises the minimum supported Expo SDK to 53.

Breaking changes in this release

This version raises the minimum supported Expo SDK to 53. The public interface of the SDK hasn't changed.

If your app uses Expo SDK 52 or older, stay on v5.8.0 until you upgrade Expo. If your app uses Expo SDK 53, follow the migration guide at the end of these release notes.

Changed​

  • The Android module now builds with expo-module-gradle-plugin instead of the legacy ExpoModulesCorePlugin.gradle script, which Expo SDK 57 expects
  • Breaking: the minimum supported Expo SDK is now 53. The expo peer dependency changed from * to >=53.0.0

Fixed​

  • Fixed iOS SecurePasswordTextField's onTextEntryComplete event not firing
  • Fixed iOS hex color parsing accepting strings with trailing invalid characters instead of rejecting them

Migration guide​

Expo SDK 54 or newer​

No changes needed. Update the package and rebuild your development client:

npx expo install @weavr-io/secure-components-react-native
npx expo prebuild --clean

Expo SDK 53​

Our Android secure components SDK depends on androidx.activity 1.12, which requires Android Gradle Plugin 8.9.1 or newer. Expo SDK 53 ships Android Gradle Plugin 8.8.2, so the Android build fails with the following error:

Dependency 'androidx.activity:activity:1.12.2' requires Android Gradle plugin 8.9.1 or higher.

To build on Expo SDK 53, pin androidx.activity to 1.10.1.

Managed Expo apps: add a config plugin, for example plugins/withAndroidxActivityPin.js:

const { withProjectBuildGradle } = require("expo/config-plugins");

const PIN = `
allprojects {
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.activity') {
details.useVersion('1.10.1')
}
}
}
}
`;

module.exports = function withAndroidxActivityPin(config) {
return withProjectBuildGradle(config, (cfg) => {
if (!cfg.modResults.contents.includes("details.requested.group == 'androidx.activity'")) {
cfg.modResults.contents += PIN;
}
return cfg;
});
};

Then register it in your Expo config and rebuild:

plugins: [
"@weavr-io/secure-components-react-native",
"./plugins/withAndroidxActivityPin.js",
],

Bare React Native apps: add the same allprojects block to the end of android/build.gradle.

Remove the pin when you upgrade to Expo SDK 54 or newer.