Skip to content

Commit 837d93c

Browse files
authored
docs: add troubleshooting for unistyles keyboard issue (#368)
Closes #354
1 parent d38c9b5 commit 837d93c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/docs/troubleshooting.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ return (
8686
)
8787
```
8888

89+
## Keyboard Covering TextInput on Android with Unistyles
90+
91+
When using [`react-native-unistyles`](https://github.com/jpudysz/react-native-unistyles) alongside TrueSheet, the keyboard may cover the TextInput instead of the sheet repositioning itself. This is caused by Unistyles preventing TrueSheet from observing keyboard animation events on Android.
92+
93+
Related: [#354](https://github.com/lodev09/react-native-true-sheet/issues/354)
94+
95+
:::info
96+
A fix has been submitted to Unistyles. See [PR #1061](https://github.com/jpudysz/react-native-unistyles/pull/1061).
97+
:::
98+
8999
## Weird layout render
90100

91101
The sheet does not have control over how React Native renders components and may lead to rendering issues. To resolve this, try to minimize the use of `flex=1` in your content styles. Instead, use fixed `height` or employ `flexGrow`, `flexBasis`, etc., to manage your layout requirements.

0 commit comments

Comments
 (0)