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

Input multiline textverticalalign on top doesnt work #208

Closed
davStar opened this issue Jun 5, 2020 · 1 comment
Closed

Input multiline textverticalalign on top doesnt work #208

davStar opened this issue Jun 5, 2020 · 1 comment

Comments

@davStar
Copy link

davStar commented Jun 5, 2020

Describe the bug
I ve encountered an issue concerning Input using multiline.
The multiline is well integrated however when I ve tried to align the text on top nothing happen.
image

To Reproduce
Here bellow the code for Input integration:

<Input multiline={true} placeholder="Décriver votre demande ..." color={theme.COLORS.THEME} style={{textAlignVertical:'top', borderColor: theme.COLORS.THEME, height: 100, width: '80%' }} placeholderTextColor={theme.COLORS.THEME}/>

Expected behavior
The result should be this one:

image

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):
Simulated on IOS platform.

@AndyOsei
Copy link
Collaborator

AndyOsei commented Jun 5, 2020

@devstar, passing the justifyContent, alignItem style props should solve the problem...check the snippet below for usage...

<Input
        multiline
        placeholder="Décriver votre demande ..." 
        color="red" 
        style={{
          justifyContent: "flex-start",
         alignItems: "flex-start",
          textAlignVertical:'top', 
          borderColor: 'black', 
          height: 100, 
          width: '80%' 
        }}
/>

@AndyOsei AndyOsei closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants