import React from 'react'; import { StyleSheet, TextInput, View } from 'react-native'; import Example from '../../shared/example'; export default function TextInputPage() { const nextFocus = React.useRef(null); const focusNextField = () => { if (nextFocus.current != null) { nextFocus.current.focus(); } }; return ( { console.log('focused'); }} style={styles.textinput} /> focusNextField()} placeholder="blurOnSubmit" style={styles.textinput} /> ); } const styles = StyleSheet.create({ container: { alignSelf: 'stretch', padding: '1rem' }, textinput: { height: 26, borderWidth: 0.5, borderColor: '#0f0f0f', padding: 4, marginVertical: '1rem' }, multiline: { borderWidth: 0.5, borderColor: '#0f0f0f', padding: 4, marginVertical: '1rem' } });