“React Native TextInput Deshabilit Keyboard” Código de respuesta

TextInput deshabilitar react nativo

<TextInput editable={false} selectTextOnFocus={false} />
Adventurous Addax

React Native Desactive la entrada de texto

<TextInput editable={false} />
amit.bhagat

React Native TextInput sin teclado

<TouchableWithoutFeedback onPress={Keyboard.dismiss} >
    <TextInput />
</TouchableWithoutFeedback>
Friendly Finch

React Native TextInput Deshabilit Keyboard

<Text>

</Text>
development development

React Native TextInput Deshabilit Keyboard

            // Step 1: Get Keyboard, TouchableWithoutFeedback from ‘react-native’;
            import { View, TextInput, StyleSheet, Keyboard,  TouchableWithoutFeedback } from 'react-native';

            // Step 2: Create an arrow function to write dismiss keyboard code
            const DismissKeyboard = ({ children }) => (
                <TouchableWithoutFeedback onPress={() => Keyboard.dismiss()}>
                    {children}
                </TouchableWithoutFeedback>
                );

            // Step 3: Wrap all TextInput inside <DismissKeyboard> </DismissKeyboard>
            //Example
            <DismissKeyboard>
                <View style={styles.container}>
                    <TextInput style={styles.input} placeholder="email" />
                    <TextInput style={styles.input} placeholder="password" />
                </View>
            </DismissKeyboard>
Dead Dotterel

Respuestas similares a “React Native TextInput Deshabilit Keyboard”

Preguntas similares a “React Native TextInput Deshabilit Keyboard”

Más respuestas relacionadas con “React Native TextInput Deshabilit Keyboard” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código