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

Document available expo clerk components #1895

Merged
merged 10 commits into from
Jan 17, 2025

Conversation

NWylynko
Copy link
Contributor

@NWylynko NWylynko commented Jan 14, 2025

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

  • I have clicked on "Files changed" and performed a thorough self-review
  • I have added the "deploy-preview" label and added the preview link(s) to this PR description
  • All existing checks pass

@NWylynko NWylynko requested a review from a team as a code owner January 14, 2025 16:00
docs/components/control/signed-in.mdx Show resolved Hide resolved
docs/components/protect.mdx Outdated Show resolved Hide resolved
docs/components/protect.mdx Outdated Show resolved Hide resolved
docs/components/protect.mdx Show resolved Hide resolved
@NWylynko NWylynko requested a review from alexisintech January 16, 2025 17:32
@alexisintech
Copy link
Member

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.

import { Protect } from '@clerk/clerk-expo'
import { ReactNode } from 'react'

export default function ProtectPage({ children }: { children: ReactNode }) {
Copy link
Contributor Author

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.

import { Protect } from '@clerk/clerk-expo'
import { ReactNode } from 'react'

export default function ProtectPage({children}: {children: ReactNode}) {
Copy link
Contributor Author

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 Show resolved Hide resolved
docs/components/protect.mdx Outdated Show resolved Hide resolved
@alexisintech alexisintech merged commit c4a4fe0 into main Jan 17, 2025
4 checks passed
@alexisintech alexisintech deleted the nick/DOCS-9771-add-expo-component-examples branch January 17, 2025 17:53
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.

3 participants