React Native Components v6.0.0
Updates the Android build setup for Expo SDK 57 and raises the minimum supported Expo SDK to 53.
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-plugininstead of the legacyExpoModulesCorePlugin.gradlescript, which Expo SDK 57 expects - Breaking: the minimum supported Expo SDK is now 53. The
expopeer dependency changed from*to>=53.0.0
Fixed
- Fixed iOS
SecurePasswordTextField'sonTextEntryCompleteevent 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.