From a62f815ecf4a425a164cbe7a9f056c4acba5ca71 Mon Sep 17 00:00:00 2001 From: Elizabeth Bourke <39694047+elizabit-b@users.noreply.github.com> Date: Sun, 23 Mar 2025 06:06:20 +0000 Subject: [PATCH] Update README.md Adds React Native dependency information --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 90ddb560..2ec524ad 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ ___ - [Push notification deep links support](#expo-push-notification-deep-links-support) - [Android](#android-deep-link) - [iOS](#ios-deep-link) +- [Versioning in dependencies](#versioning-in-dependencies) - [Common methods](#methods) - [Types](#types) - [Usage](#usage) @@ -602,8 +603,22 @@ Next, rebuild your app as described in the ["Adding custom native code"](https:/ } } ``` +___ + +### Versioning in dependencies + +We define the iOS and Android versions used in React Native with optimistic operators +i.e. ``` ~> for iOS ``` and ``` + for Android ```, ensuring compatibility while allowing for non-breaking updates: +iOS (~> in CocoaPods): +We use a version constraint e.g.``` ~> 18.6.1 ``` which allows updates from ``` 18.6.1 to 18.6.x ``` (up to but not including 18.7.0). +Android (+ in Gradle): +We use a version constraint e.g. ``` 18.6.+ ``` which allows updates to any patch version within 18.6.x + +This means that by removing and reinstalling dependencies, you’ll automatically get the latest compatible patch version, which includes any fixes while avoiding breaking changes from a major version. + +___ ## Methods