Skip to content

Commit 54a87d5

Browse files
authored
docs: Mention kotlin plugin setup for RN < 0.73 (#1131)
* docs for rn 0.73 * pad it
1 parent 721b91c commit 54a87d5

File tree

1 file changed

+23
-0
lines changed
  • packages/website/docs/advanced

1 file changed

+23
-0
lines changed

Diff for: packages/website/docs/advanced/Next.md

+23
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,34 @@ When you enable the feature again, the new database is **not** recreated, becaus
3838

3939
### Enable
4040

41+
#### Add config flag
42+
4143
In your project's `android` directory, locate `gradle.properties` file (if it does not exist, create one) and add the line:
4244
```groovy
4345
AsyncStorage_useNextStorage=true
4446
```
4547

48+
#### React Native < 0.73
49+
50+
For React Native below version 0.73, you need to apply Kotlin plugin to your project.
51+
In your project's android directory, locate root build.gradle file. Add Kotlin dependency to the buildscript:
52+
53+
```diff
54+
buildscript {
55+
ext {
56+
// other extensions
57+
+ kotlinVersion = '1.9.24'
58+
}
59+
60+
dependencies {
61+
// other dependencies
62+
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
63+
}
64+
}
65+
66+
```
67+
68+
4669
### Configuration
4770

4871
**Kotlin version**

0 commit comments

Comments
 (0)