Skip to content

Commit

Permalink
docs(README.md): add TextDirection and add direction to TextOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
guhungry committed Oct 24, 2024
1 parent eb85588 commit d804398
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import RNPhotoManipulator from 'react-native-photo-manipulator';
* [`Point`](README.md#point)
* [`Rect`](README.md#rect)
* [`Size`](README.md#size)
* [`TextDirection`](README.md#textdirection)
* [`TextOptions`](README.md#textoptions)
### Method
#### Crop and resize
Expand Down Expand Up @@ -391,6 +392,14 @@ Represent size (width, height) of region or image
| `width` | number | The width of the region |
| `height` | number | The height of the region |

#### TextDirection
Enum represent text direction

| Enum | Description |
| --------------- | ----------------------------------------------------------------- |
| LTR | Left-to-Right text direction (e.g., English, Spanish) |
| RTL | Right-to-Left text direction (e.g., Arabic, Hebrew) |

#### TextOptions
Represent attributes of text such as text, color, size, and etc.

Expand All @@ -406,3 +415,4 @@ Represent attributes of text such as text, color, size, and etc.
| `shadowRadius` | number | No | The shadow radius |
| `shadowOffset` | [`Point`](README.md#point) | No | The shadow offset |
| `shadowColor` | string | No | The color of the shadow |
| `direction` | [`TextDirection`](README.md#textdirection) | No | The direction of the text, default to TextDirection.LTR |

0 comments on commit d804398

Please sign in to comment.