Consolidate macOS tags
This commit is contained in:
Родитель
b8d2bbaead
Коммит
fdab6df032
|
@ -331,7 +331,7 @@ export interface TextInputMacOSProps {
|
|||
/**
|
||||
* 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.
|
||||
|
@ -339,7 +339,7 @@ export interface TextInputMacOSProps {
|
|||
* `{ nativeEvent: { enabled } }`.
|
||||
* 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.
|
||||
|
@ -347,7 +347,7 @@ export interface TextInputMacOSProps {
|
|||
* `{ nativeEvent: { enabled } }`.
|
||||
* 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.
|
||||
|
@ -355,7 +355,7 @@ export interface TextInputMacOSProps {
|
|||
* `{ nativeEvent: { enabled } }`.
|
||||
* 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
|
||||
|
|
|
@ -2,13 +2,15 @@
|
|||
* @format
|
||||
*/
|
||||
|
||||
// [macOS]
|
||||
|
||||
import {ColorValue, OpaqueColorValue} from './StyleSheet';
|
||||
|
||||
type DynamicColorMacOSTuple = {
|
||||
light: ColorValue;
|
||||
dark: ColorValue;
|
||||
highContrastLight?: ColorValue | undefined; // [macOS]
|
||||
highContrastDark?: ColorValue | undefined; // [macOS]
|
||||
highContrastLight?: ColorValue | undefined;
|
||||
highContrastDark?: ColorValue | undefined;
|
||||
};
|
||||
|
||||
export function DynamicColorMacOS(
|
||||
|
|
Загрузка…
Ссылка в новой задаче