Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

need to add the css property to work correctly #412

Open
saymondamasio opened this issue Jun 25, 2021 · 1 comment
Open

need to add the css property to work correctly #412

saymondamasio opened this issue Jun 25, 2021 · 1 comment

Comments

@saymondamasio
Copy link

I need to put the property width: 100% on the Form so that the RectButton is the correct width, I think if you put this property by default it would be better

<Form
  style={{
    width: '100%',
  }}
  ref={formRef}
  onSubmit={handleSignIn}
>
  <Input name="email" icon="mail" placeholder="E-mail" />
  <Input name="password" icon="lock" placeholder="Senha" />
  <Button onPress={() => formRef.current?.submitForm()}>
    Entrar
  </Button>
</Form>
@joaoalcdev
Copy link

In addition to the code and the width:100% property, define a max-width and min-width with paddings.

formRef.current?.submitForm()}> Entrar

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

No branches or pull requests

2 participants