PHP 7.4.33
Preview: TextInputNativeCommands.js Size: 756 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/react-native/Libraries/Components/TextInput/TextInputNativeCommands.js
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict-local
 * @format
 */

import type {Int32} from '../../Types/CodegenTypes';

import * as React from 'react';

export interface TextInputNativeCommands<T> {
  +focus: (viewRef: React.ElementRef<T>) => void;
  +blur: (viewRef: React.ElementRef<T>) => void;
  +setTextAndSelection: (
    viewRef: React.ElementRef<T>,
    mostRecentEventCount: Int32,
    value: ?string, // in theory this is nullable
    start: Int32,
    end: Int32,
  ) => void;
}

const supportedCommands = ['focus', 'blur', 'setTextAndSelection'];

export default supportedCommands;

Directory Contents

Dirs: 0 × Files: 12
Name Size Perms Modified Actions
19.82 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.18 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
3.66 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
500 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.38 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.29 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
4.27 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
27.47 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
28.55 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
52.53 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
756 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
5.66 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).