Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/handling-text-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {Text, TextInput, View} from 'react-native';
const PizzaTranslator = () => {
const [text, setText] = useState('');
return (
<View style={{padding: 10}}>
<View style={{padding: 100}}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Sivac07, thanks for the update! 👍

Let's use the different layout to active the same effect instead of modifying the padding value.

Suggested change
<View style={{padding: 100}}>
<View style={{flex: 1, justifyContent: 'center'}}>

We can also add the border to text input to increase its visibility.

Screenshot 2024-02-16 at 13 45 17

<TextInput
style={{height: 40}}
placeholder="Type here to translate!"
Expand Down