Skip to content

Commit

Permalink
docs: Mention kotlin plugin setup for RN < 0.73 (#1131)
Browse files Browse the repository at this point in the history
* docs for rn 0.73

* pad it
  • Loading branch information
krizzu authored Jul 22, 2024
1 parent 721b91c commit 54a87d5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/website/docs/advanced/Next.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,34 @@ When you enable the feature again, the new database is **not** recreated, becaus

### Enable

#### Add config flag

In your project's `android` directory, locate `gradle.properties` file (if it does not exist, create one) and add the line:
```groovy
AsyncStorage_useNextStorage=true
```

#### React Native < 0.73

For React Native below version 0.73, you need to apply Kotlin plugin to your project.
In your project's android directory, locate root build.gradle file. Add Kotlin dependency to the buildscript:

```diff
buildscript {
ext {
// other extensions
+ kotlinVersion = '1.9.24'
}

dependencies {
// other dependencies
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}

```


### Configuration

**Kotlin version**
Expand Down

0 comments on commit 54a87d5

Please sign in to comment.