📌  相关文章
📜  反应本机文本输入禁用键盘 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:44.088000             🧑  作者: Mango

代码示例4
// 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 }) => (
                 Keyboard.dismiss()}>
                    {children}
                
                );

            // Step 3: Wrap all TextInput inside  
            //Example