fix: add missing lineBreakStrategyIOS types for Text, TextInput (#36526)
Summary: I added missing type `lineBreakStrategyIOS` for Text and TextInput. ([Text docs](https://reactnative.dev/docs/text)) ## Changelog [GENERAL] [FIXED] - add `lineBreakStrategyIOS` prop type for Text and TextInput <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> Pull Request resolved: https://github.com/facebook/react-native/pull/36526 Test Plan: Ran `yarn test-typescript` and `yarn test-typescript-offline` with no errors. Reviewed By: jacdebug Differential Revision: D44213791 Pulled By: javache fbshipit-source-id: 8d0d44e2cdd1fa362c54935326e86dde88c5ba0b
This commit is contained in:
Родитель
0eff8d66c9
Коммит
0c5c07fc9b
|
@ -272,6 +272,16 @@ export interface TextInputIOSProps {
|
|||
* If false, scrolling of the text view will be disabled. The default value is true. Only works with multiline={true}
|
||||
*/
|
||||
scrollEnabled?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Set line break strategy on iOS.
|
||||
*/
|
||||
lineBreakStrategyIOS?:
|
||||
| 'none'
|
||||
| 'standard'
|
||||
| 'hangul-word'
|
||||
| 'push-out'
|
||||
| undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -53,6 +53,16 @@ export interface TextPropsIOS {
|
|||
* default, a gray oval highlights the text on press down.
|
||||
*/
|
||||
suppressHighlighting?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Set line break strategy on iOS.
|
||||
*/
|
||||
lineBreakStrategyIOS?:
|
||||
| 'none'
|
||||
| 'standard'
|
||||
| 'hangul-word'
|
||||
| 'push-out'
|
||||
| undefined;
|
||||
}
|
||||
|
||||
export interface TextPropsAndroid {
|
||||
|
|
Загрузка…
Ссылка в новой задаче