Consolidate macOS tags
This commit is contained in:
Родитель
b8d2bbaead
Коммит
fdab6df032
|
@ -331,7 +331,7 @@ export interface TextInputMacOSProps {
|
||||||
/**
|
/**
|
||||||
* Fired when a supported element is pasted
|
* Fired when a supported element is pasted
|
||||||
*/
|
*/
|
||||||
onPaste?: ((event: PasteEvent) => void) | undefined; // [macOS]
|
onPaste?: ((event: PasteEvent) => void) | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback that is called when the text input's autoCorrect setting changes.
|
* Callback that is called when the text input's autoCorrect setting changes.
|
||||||
|
@ -339,7 +339,7 @@ export interface TextInputMacOSProps {
|
||||||
* `{ nativeEvent: { enabled } }`.
|
* `{ nativeEvent: { enabled } }`.
|
||||||
* Does only work with 'multiline={true}'.
|
* Does only work with 'multiline={true}'.
|
||||||
*/
|
*/
|
||||||
onAutoCorrectChange?: ((e: SettingChangeEvent) => void) | undefined; // [macOS]
|
onAutoCorrectChange?: ((e: SettingChangeEvent) => void) | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback that is called when the text input's spellCheck setting changes.
|
* Callback that is called when the text input's spellCheck setting changes.
|
||||||
|
@ -347,7 +347,7 @@ export interface TextInputMacOSProps {
|
||||||
* `{ nativeEvent: { enabled } }`.
|
* `{ nativeEvent: { enabled } }`.
|
||||||
* Does only work with 'multiline={true}'.
|
* Does only work with 'multiline={true}'.
|
||||||
*/
|
*/
|
||||||
onSpellCheckChange?: ((e: SettingChangeEvent) => void) | undefined; // [macOS]
|
onSpellCheckChange?: ((e: SettingChangeEvent) => void) | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback that is called when the text input's grammarCheck setting changes.
|
* Callback that is called when the text input's grammarCheck setting changes.
|
||||||
|
@ -355,7 +355,7 @@ export interface TextInputMacOSProps {
|
||||||
* `{ nativeEvent: { enabled } }`.
|
* `{ nativeEvent: { enabled } }`.
|
||||||
* Does only work with 'multiline={true}'.
|
* Does only work with 'multiline={true}'.
|
||||||
*/
|
*/
|
||||||
onGrammarCheckChange?: ((e: SettingChangeEvent) => void) | undefined; // [macOS]
|
onGrammarCheckChange?: ((e: SettingChangeEvent) => void) | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables Paste support for certain types of pasted types
|
* Enables Paste support for certain types of pasted types
|
||||||
|
|
|
@ -2,13 +2,15 @@
|
||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// [macOS]
|
||||||
|
|
||||||
import {ColorValue, OpaqueColorValue} from './StyleSheet';
|
import {ColorValue, OpaqueColorValue} from './StyleSheet';
|
||||||
|
|
||||||
type DynamicColorMacOSTuple = {
|
type DynamicColorMacOSTuple = {
|
||||||
light: ColorValue;
|
light: ColorValue;
|
||||||
dark: ColorValue;
|
dark: ColorValue;
|
||||||
highContrastLight?: ColorValue | undefined; // [macOS]
|
highContrastLight?: ColorValue | undefined;
|
||||||
highContrastDark?: ColorValue | undefined; // [macOS]
|
highContrastDark?: ColorValue | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function DynamicColorMacOS(
|
export function DynamicColorMacOS(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче