From 62a9163e85849b0d5524737f817e11568201e2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Kapu=C5=9Bciak?= <39658211+kacperkapusciak@users.noreply.github.com> Date: Tue, 2 Nov 2021 05:43:02 -0700 Subject: [PATCH] docs: add kotlin guide to change version (#1185) This PR adds information on how to override the Kotlin version used by screens and the minimum Kotlin required version. --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index b0861a7c55..ab142c8204 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,26 @@ protected void onCreate(Bundle savedInstanceState) { For people that must handle cases like this, there is [a more detailed discussion of the difficulties in a series of related comments](https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704633). +
+Need to use a custom Kotlin version? +
+ +Since `v3.6.0` `react-native-screens` has been rewritten with Kotlin. Kotlin version used in this library defaults to `1.4.10`. + +If you need to use a different Kotlin version, set `kotlinVersion` ext property in your project's `android/build.gradle` and the library will use this version accordingly: + +``` +buildscript { + ext { + ... + kotlinVersion = "1.4.10" + } +} +``` + +**Disclaimer**: `react-native-screens` requires Kotlin `1.3.50` or higher. +
+ ### Windows Installation on Windows should be completely handled with auto-linking when using React Native Windows 0.63+. For earlier versions, you must [manually link](https://microsoft.github.io/react-native-windows/docs/native-modules-using) the native module.