-
Notifications
You must be signed in to change notification settings - Fork 518
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
Document available expo clerk components #1895
Document available expo clerk components #1895
Conversation
I noticed you resolved comments that weren't resolved, so I went ahead and addressed them in a commit. For future PR's, please address all comments before asking for another review/approval ! The code for those un-addressed comments was broken, and that can't be shipped to the docs. |
Co-authored-by: Alexis Aguilar <[email protected]>
docs/components/protect.mdx
Outdated
import { Protect } from '@clerk/clerk-expo' | ||
import { ReactNode } from 'react' | ||
|
||
export default function ProtectPage({ children }: { children: ReactNode }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A page component, rendered by a expo-router won't receive children
props. I could change the example to being a layout component instead.
docs/components/protect.mdx
Outdated
import { Protect } from '@clerk/clerk-expo' | ||
import { ReactNode } from 'react' | ||
|
||
export default function ProtectPage({children}: {children: ReactNode}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A page component, rendered by a expo-router won't receive children
props. I could change the example to being a layout component instead.
Important
🔎 Previews:
Explanation:
https://linear.app/clerk/issue/DOCS-9771/update-component-references-to-include-all-sdks
This PR:
Adds examples for the Clerk components in the @clerk/clerk-expo module
Checklist