-
Notifications
You must be signed in to change notification settings - Fork 317
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
chore(rna): theming docs #3060
chore(rna): theming docs #3060
Conversation
|
@@ -184,19 +184,16 @@ const SecondaryNav = (props) => { | |||
))} | |||
</ExpanderItem> | |||
|
|||
{/* React Native does not yet support theming */} |
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.
Woot!
@@ -9,7 +9,3 @@ The Authenticator has an option to hide the sign up page including the `Create A | |||
<Fragment> | |||
{({ platform }) => import(`./hidesignup.default.${platform}.mdx`)} | |||
</Fragment> | |||
|
|||
<Example> |
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.
Removed this since it was rendering the React web authenticator
|
||
You can update the style of the Authenticator by wrapping it with a [ThemeProvider](/react-native/theming). Then create a [theme object](/react-native/theming#theme-structure), with all your font customizations. | ||
|
||
```jsx file=../../../../../../../examples/react-native/src/features/Authenticator/Theming/Example.tsx |
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.
I assume this is a good idea so we can test the example even if we aren't rendering it in the docs
examples/react-native/src/features/Authenticator/Theming/DarkMode.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM, left a couple suggestions in teh examples
examples/react-native/src/features/Authenticator/Theming/Example.tsx
Outdated
Show resolved
Hide resolved
examples/react-native/src/features/Authenticator/Theming/DarkMode.tsx
Outdated
Show resolved
Hide resolved
…le.tsx Co-authored-by: Caleb Pollman <cpollman@amazon.com>
…ode.tsx Co-authored-by: Caleb Pollman <cpollman@amazon.com>
Description of changes
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passessideEffects
field updatedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.