You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -166,7 +166,7 @@ Grabber props to be used for android grabber or handle.
166
166
167
167
Blur tint that is mapped into native values in iOS.
168
168
169
-
```ts
169
+
```tsx
170
170
<TrueSheetblurTint="dark">
171
171
// ...
172
172
</TrueSheet>
@@ -200,7 +200,7 @@ Blur tint that is mapped into native values in iOS.
200
200
201
201
`Object` that comes with some events.
202
202
203
-
```ts
203
+
```tsx
204
204
{
205
205
index: 1,
206
206
value: 69
@@ -216,25 +216,37 @@ Blur tint that is mapped into native values in iOS.
216
216
217
217
When using `jest`, simply mock the entire package.
218
218
219
-
```ts
219
+
```tsx
220
220
jest.mock('@lodev09/react-native-true-sheet')
221
221
```
222
222
223
223
## Troubleshooting
224
224
225
+
### Handling `ScrollView` on **Android**
226
+
227
+
On Android, `nestedScrollEnabled` needs to be enabled so that scrolling works when the sheet is expanded to its `maxHeight`.
228
+
229
+
```tsx
230
+
<TrueSheetref={sheet}>
231
+
<ScrollViewnestedScrollEnabled>
232
+
// ...
233
+
</ScrollView>
234
+
</TrueSheet>
235
+
```
236
+
225
237
### Using `react-native-gesture-handler` on **Android**
226
238
227
239
On Android, RNGH does not work by default because modals are not located under React Native Root view in native hierarchy. To fix that, components need to be wrapped with `GestureHandlerRootView`.
On iOS, navigating to a [React Navigation](https://reactnavigation.org) screen from within the Sheet can cause issues. To resolve this, dismiss the sheet before navigating!
0 commit comments