Skip to content

Commit 7fa7fe3

Browse files
Update sheetmanager.mdx
add missing import and empty export so that user can copy this snippet without errors
1 parent 5bf7f5a commit 7fa7fe3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/pages/guides/sheetmanager.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default ExampleSheet;
2727
Create a `sheets.tsx` file and import your sheet then register it.
2828

2929
```ts
30-
import {registerSheet} from 'react-native-actions-sheet';
30+
import {registerSheet, SheetDefinition} from 'react-native-actions-sheet';
3131
import ExampleSheet from 'example-sheet.tsx';
3232

3333
registerSheet('example-sheet', ExampleSheet);
@@ -39,8 +39,6 @@ declare module 'react-native-actions-sheet' {
3939
'example-sheet': SheetDefinition;
4040
}
4141
}
42-
43-
export {};
4442
```
4543

4644
In `App.js` import `sheets.tsx` and wrap your app in `SheetProvider`.

0 commit comments

Comments
 (0)