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

Fixed some minor typos #2638

Merged
merged 1 commit into from
Jun 4, 2021
Merged
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
18 changes: 9 additions & 9 deletions docs/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Sets the frequency of automatic hyphenation to use when determining word breaks

### `dataDetectorType` <div class="label android">Android</div>

Determines the types of data converted to clickable URLs in the text element. By default no data types are detected.
Determines the types of data converted to clickable URLs in the text element. By default, no data types are detected.

You can provide only one type.

Expand All @@ -364,7 +364,7 @@ Specifies the disabled state of the text view for testing purposes.

### `ellipsizeMode`

When `numberOfLines` is set, this prop defines how text will be truncated. `numberOfLines` must be set in conjunction with this prop.
When `numberOfLines` is set, this prop defines how the text will be truncated. `numberOfLines` must be set in conjunction with this prop.

This can be one of the following values:

Expand All @@ -373,7 +373,7 @@ This can be one of the following values:
- `tail` - The line is displayed so that the beginning fits in the container and the missing text at the end of the line is indicated by an ellipsis glyph. e.g., "abcd..."
- `clip` - Lines are not drawn past the edge of the text container.

> On Android, when `numberOfLines` is set to value higher then `1`, only `tail` value will work correctly.
> On Android, when `numberOfLines` is set to a value higher than `1`, only `tail` value will work correctly.

| Type | Default |
| ---------------------------------------------- | ------- |
Expand All @@ -383,7 +383,7 @@ This can be one of the following values:

### `maxFontSizeMultiplier`

Specifies largest possible scale a font can reach when `allowFontScaling` is enabled. Possible values:
Specifies the largest possible scale a font can reach when `allowFontScaling` is enabled. Possible values:

- `null/undefined`: inherit from the parent node or the global default (0)
- `0`: no max, ignore parent/global default
Expand All @@ -397,7 +397,7 @@ Specifies largest possible scale a font can reach when `allowFontScaling` is ena

### `minimumFontScale` <div class="label ios">iOS</div>

Specifies smallest possible scale a font can reach when `adjustsFontSizeToFit` is enabled. (values 0.01-1.0).
Specifies the smallest possible scale a font can reach when `adjustsFontSizeToFit` is enabled. (values 0.01-1.0).

| Type |
| ------ |
Expand Down Expand Up @@ -469,7 +469,7 @@ This function is called on press.

### `onResponderGrant`

The View is now responding for touch events. This is the time to highlight and show the user what is happening.
The View is now responding to touch events. This is the time to highlight and show the user what is happening.

| Type |
| ---------------------------------- |
Expand Down Expand Up @@ -509,7 +509,7 @@ The responder has been taken from the `View`. Might be taken by other views afte

### `onResponderTerminationRequest`

Some other `View` wants to become responder and is asking this `View` to release its responder. Returning `true` allows its release.
Some other `View` wants to become a responder and is asking this `View` to release its responder. Returning `true` allows its release.

| Type |
| ------------------------------------- |
Expand All @@ -519,7 +519,7 @@ Some other `View` wants to become responder and is asking this `View` to release

### `onStartShouldSetResponderCapture`

If a parent `View` wants to prevent a child `View` from becoming responder on a touch start, it should have this handler which returns `true`.
If a parent `View` wants to prevent a child `View` from becoming a responder on a touch start, it should have this handler which returns `true`.

| Type |
| ------------------------------------- |
Expand Down Expand Up @@ -639,7 +639,7 @@ Set text break strategy on Android API Level 23+, possible values are `simple`,

### TextLayoutEvent

`TextLayoutEvent` object is returned in the callback as a result of component layout change. It contains a key called `lines` with a value which is an array containing [`TextLayout`](text#textlayout) object corresponeded to every rendered text line.
`TextLayoutEvent` object is returned in the callback as a result of a component layout change. It contains a key called `lines` with a value which is an array containing [`TextLayout`](text#textlayout) object corresponded to every rendered text line.

#### Example

Expand Down