Skip to content

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.

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

@Simek
Copy link
Collaborator

Simek commented Oct 13, 2025

Closing in favour of:

@Simek Simek closed this Oct 13, 2025
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.

3 participants