Skip to content

Commit 5a28241

Browse files
committed
docs: added adding shadow guide
1 parent 0110a6b commit 5a28241

File tree

7 files changed

+38
-7
lines changed

7 files changed

+38
-7
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
id: adding-shadow
3+
title: Adding Shadow
4+
description: Adding shadow to the Bottom Sheet.
5+
keywords:
6+
- bottomsheet
7+
- bottom-sheet
8+
- bottom sheet
9+
- react-native
10+
- react native
11+
- ios
12+
- android
13+
- sheet
14+
- modal
15+
- presentation modal
16+
- reanimated
17+
image: /img/bottom-sheet-preview.gif
18+
slug: /adding-shadow
19+
---
20+
21+
![React Native Bottom Sheet Shadow](/img/bottom-sheet-shadow.jpg)
22+
23+
To add shadow to the bottom sheet, you will need to pass the `style` prop with shadow styling config, I recommend checking out [React Native Shadow Generator](https://ethercreative.github.io/react-native-shadow-generator/) by [@ethercreative](https://github.com/ethercreative).
24+
25+
:::note NOTICE
26+
27+
You may notice that shadow looks different between **iOS** and **Android**, that's because each platform handle drawing shadows differently, read more about [Android Shadows](https://developer.android.com/training/material/shadows-clipping).
28+
29+
:::
30+

website/docs/custom-backdrop.mdx renamed to website/docs/guides/custom-backdrop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can extend your custom backdrop props interface with the provided `BottomShe
3030
### Example
3131

3232
import useBaseUrl from '@docusaurus/useBaseUrl';
33-
import { Video } from '../components/video';
33+
import { Video } from '../../components/video';
3434

3535
<Video
3636
title="React Native Bottom Sheet Custom Backdrop"

website/docs/custom-background.mdx renamed to website/docs/guides/custom-background.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can extend your custom background props interface with the provided `BottomS
3030
### Example
3131

3232
import useBaseUrl from '@docusaurus/useBaseUrl';
33-
import { Video } from '../components/video';
33+
import { Video } from '../../components/video';
3434

3535
<Video
3636
title="React Native Bottom Sheet Custom Background"

website/docs/custom-handle.mdx renamed to website/docs/guides/custom-handle.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can extend your custom handle props interface with the provided `BottomSheet
3030
### Example
3131

3232
import useBaseUrl from '@docusaurus/useBaseUrl';
33-
import { Video } from '../components/video';
33+
import { Video } from '../../components/video';
3434

3535
<Video
3636
title="React Native Bottom Sheet Custom Handle"
File renamed without changes.

website/sidebars.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ module.exports = {
1414
type: 'category',
1515
label: 'Guides',
1616
items: [
17-
'custom-handle',
18-
'custom-backdrop',
19-
'custom-background',
20-
'react-navigation-integration',
17+
'guides/custom-handle',
18+
'guides/custom-backdrop',
19+
'guides/custom-background',
20+
'guides/adding-shadow',
21+
'guides/react-navigation-integration',
2122
],
2223
},
2324
'troubleshooting',
66.5 KB
Loading

0 commit comments

Comments
 (0)