Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export useModalize from the root of the library #441

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

jhhayashi
Copy link
Contributor

No description provided.

@jhhayashi jhhayashi changed the title Improve the documentation for the useModalize hook docs: improve the documentation for the useModalize hook Aug 3, 2022
docs/HOOKS.md Outdated

```tsx
import React, { useRef } from 'react';
import React from 'react';
import { Modalize } from 'react-native-modalize';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be possible to import from the root

Suggested change
import { Modalize } from 'react-native-modalize';
import { Modalize, useModalize } from 'react-native-modalize';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't work for me and I didn't see anything in the code to make it export from the index file. Happy to PR a change to have it export from there if desired

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I assume it was the case, probably missed that. You could add the export in there

@jhhayashi jhhayashi changed the title docs: improve the documentation for the useModalize hook feat: export useModalize from the root of the library Aug 4, 2022
@jhhayashi jhhayashi requested a review from jeremybarbet August 4, 2022 14:27
Copy link
Owner

@jeremybarbet jeremybarbet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@jeremybarbet jeremybarbet merged commit 7684f8d into jeremybarbet:master Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants