Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update handling-text-input.md #3980

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Sivac07
Copy link

@Sivac07 Sivac07 commented Jan 7, 2024

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 .

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 .
Copy link

netlify bot commented Jan 7, 2024

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit bfb2dcf
🔍 Latest deploy log https://app.netlify.com/sites/react-native/deploys/659a2a086a2fa40008d1ee75
😎 Deploy Preview https://deploy-preview-3980--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants