-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
942a17b
commit 20977f6
Showing
4 changed files
with
130 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Troubleshooting | ||
|
||
This section attempts to outline issues that users frequently encounter when first getting accustomed to using `react-native-keyboard-controller`. These issues may or may not be related to `react-native-keyboard-controller`. | ||
|
||
## Incompatible `kotlinVersion` and failed Android builds | ||
|
||
Sometimes you may see failed Android builds complaining that your version of kotlin is lower than expected version. | ||
|
||
`error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.` | ||
|
||
To overcome this issue you will need to set higher version of the kotlin: | ||
|
||
### `react-native` or `expo` bare workflow | ||
|
||
You need to modify `android/build.gradle` and specify correct `kotlinVersion`: | ||
|
||
```java | ||
buildscript { | ||
ext { | ||
kotlinVersion = "1.6.21" | ||
} | ||
} | ||
``` | ||
|
||
For more information please, see how it's configured in [example](https://github.com/kirillzyusko/react-native-keyboard-controller/blob/9d0e63712a2f55dab0f6f3f95398567bb9ca1efa/example/android/build.gradle#L9) project. | ||
|
||
### `Expo` managed workflow | ||
|
||
If you are using Expo managed workflow you need to install `expo-build-properties` | ||
|
||
```sh | ||
npx expo install expo-build-properties | ||
``` | ||
|
||
And add plugin inside of your `app.json` or `app.config.js` with following configuration: | ||
|
||
```json | ||
{ | ||
"expo": { | ||
"plugins": [ | ||
[ | ||
"expo-build-properties", | ||
{ | ||
"android": { | ||
"kotlinVersion": "1.6.21" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
``` | ||
|
||
## Swift support | ||
|
||
Since part of this library is written using `swift` language - your project needs to support it. For that you can create empty `.swift` file with bridging header. See this [step-by-step](https://stackoverflow.com/a/56176956/9272042) guide if you have problems. | ||
|
||
## Animations frame drops | ||
|
||
Sometimes you may see that animation performance is poor. If you are using `sentry@5` make sure `enableStallTracking` is disabled (i. e. `enableStallTracking: false`) or upgrade to `sentry@6`, | ||
|
||
See [this issue](https://github.com/kirillzyusko/react-native-keyboard-controller/issues/641) for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Troubleshooting | ||
|
||
This section attempts to outline issues that users frequently encounter when first getting accustomed to using `react-native-keyboard-controller`. These issues may or may not be related to `react-native-keyboard-controller`. | ||
|
||
## Incompatible `kotlinVersion` and failed Android builds | ||
|
||
Sometimes you may see failed Android builds complaining that your version of kotlin is lower than expected version. | ||
|
||
`error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.` | ||
|
||
To overcome this issue you will need to set higher version of the kotlin: | ||
|
||
### `react-native` or `expo` bare workflow | ||
|
||
You need to modify `android/build.gradle` and specify correct `kotlinVersion`: | ||
|
||
```java | ||
buildscript { | ||
ext { | ||
kotlinVersion = "1.6.21" | ||
} | ||
} | ||
``` | ||
|
||
For more information please, see how it's configured in [example](https://github.com/kirillzyusko/react-native-keyboard-controller/blob/9d0e63712a2f55dab0f6f3f95398567bb9ca1efa/example/android/build.gradle#L9) project. | ||
|
||
### `Expo` managed workflow | ||
|
||
If you are using Expo managed workflow you need to install `expo-build-properties` | ||
|
||
```sh | ||
npx expo install expo-build-properties | ||
``` | ||
|
||
And add plugin inside of your `app.json` or `app.config.js` with following configuration: | ||
|
||
```json | ||
{ | ||
"expo": { | ||
"plugins": [ | ||
[ | ||
"expo-build-properties", | ||
{ | ||
"android": { | ||
"kotlinVersion": "1.6.21" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
``` | ||
|
||
## Swift support | ||
|
||
Since part of this library is written using `swift` language - your project needs to support it. For that you can create empty `.swift` file with bridging header. See this [step-by-step](https://stackoverflow.com/a/56176956/9272042) guide if you have problems. | ||
|
||
## Animations frame drops | ||
|
||
Sometimes you may see that animation performance is poor. If you are using `sentry@5` make sure `enableStallTracking` is disabled (i. e. `enableStallTracking: false`) or upgrade to `sentry@6`, | ||
|
||
See [this issue](https://github.com/kirillzyusko/react-native-keyboard-controller/issues/641) for more details. |