Skip to content

Commit

Permalink
Update handling-text-input.md
Browse files Browse the repository at this point in the history
I have set the text input padding as 100. Because the text input box will show in the center of device instead of top of the device. So, it will be more convenient to user to test the input box .
  • Loading branch information
Sivac07 committed Jan 7, 2024
1 parent 0ac8182 commit bfb2dcf
Showing 1 changed file with 1 addition and 1 deletion.
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}}>
<TextInput
style={{height: 40}}
placeholder="Type here to translate!"
Expand Down

0 comments on commit bfb2dcf

Please sign in to comment.