Skip to content

Commit 31dc425

Browse files
authored
Update README.md with dependency details
Adds React Native dependency information
1 parent d6f24eb commit 31dc425

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ___
3030
- [Push notification deep links support](#expo-push-notification-deep-links-support)
3131
- [Android](#android-deep-link)
3232
- [iOS](#ios-deep-link)
33+
- [Versioning in dependencies](#versioning-in-dependencies)
3334
- [Common methods](#methods)
3435
- [Types](#types)
3536
- [Usage](#usage)
@@ -602,8 +603,22 @@ Next, rebuild your app as described in the ["Adding custom native code"](https:/
602603
}
603604
}
604605
```
606+
___
607+
608+
### Versioning in dependencies
609+
610+
We define the iOS and Android versions used in React Native with optimistic operators
611+
i.e. ``` ~> for iOS ``` and ``` + for Android ```, ensuring compatibility while allowing for non-breaking updates:
605612

613+
iOS (~> in CocoaPods):
614+
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).
606615

616+
Android (+ in Gradle):
617+
We use a version constraint e.g. ``` 18.6.+ ``` which allows updates to any patch version within 18.6.x
618+
619+
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.
620+
621+
___
607622

608623
## Methods
609624

0 commit comments

Comments
 (0)