Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/deploy-docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- deploy-docusaurus
pull_request:
branches:
- deploy-docusaurus

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions docusaurus/docs/guides/MATERIAL_COLOR.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const materialColor = new MaterialColor("#ffde3f")
> The source color has to be in Hex code format, e.g #RRGGBB, or #RRGGBBAA, or #AARRGGBB

:::info
Check the [`MaterialColor`](http://localhost:3000/material-color-react-native/docs/definitions/index/classes/MaterialColor) TypeScript definitions to see all its members, methods, and statics.
Check the [`MaterialColor`](/docs/definitions/index/classes/MaterialColor) TypeScript definitions to see all its members, methods, and statics.
:::

## Material Options
Expand Down Expand Up @@ -254,9 +254,9 @@ Build Material from Source Image is not compatible in [React Native for Windows]

### Error Handling

The promise resolver guarantee that return a valid source color from bare `ImageUtils`, or return a valid [`MaterialColor`](http://localhost:3000/material-color-react-native/docs/definitions/index/classes/MaterialColor) instance from the static method, but it might throw an exception if something unexpected ocurred.
The promise resolver guarantee that return a valid source color from bare `ImageUtils`, or return a valid [`MaterialColor`](/docs/definitions/index/classes/MaterialColor) instance from the static method, but it might throw an exception if something unexpected ocurred.

If this is happened, this library will throw [`ImageUtils.SourceColorFromImageException`](http://localhost:3000/material-color-react-native/docs/definitions/index/namespaces/ImageUtils/classes/SourceColorFromImageException) or [`MaterialColor.SourceImageException`](/docs/definitions/index/classes/MaterialColor#sourceimageexception) class. Both classes are same. You can cast with the `instanceof` operator, and check what type of error happened from the `type` member from that class
If this is happened, this library will throw [`ImageUtils.SourceColorFromImageException`](/docs/definitions/index/namespaces/ImageUtils/classes/SourceColorFromImageException) or [`MaterialColor.SourceImageException`](/docs/definitions/index/classes/MaterialColor#sourceimageexception) class. Both classes are same. You can cast with the `instanceof` operator, and check what type of error happened from the `type` member from that class

```tsx
import {
Expand Down
Loading