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

[Bug] Pressable Area of Input Component #118

Open
Gregoire-Bearstudio opened this issue Aug 25, 2021 · 0 comments
Open

[Bug] Pressable Area of Input Component #118

Gregoire-Bearstudio opened this issue Aug 25, 2021 · 0 comments
Assignees

Comments

@Gregoire-Bearstudio
Copy link

Description

I wanted to create an Input component with a specif appearance, but the pressable area of the input is smaller than expected. I can't press the button, but if I press the textArea, the it works (more details bellow)

Steps to reproduce the behaviour:

The first screenshot here is supposed to be the Input usable (we can see a bit of padding inside it)

Screenshot_20210825-100125

The actual pressable Area can be seen in the second Screenshot. For now, there's no way to customize this part.

Screenshot_20210825-100131

Here's the code of the component (the attributes here match the ones of ForwardRef in the React Native Inspector) :

import React from 'react';
import { Input as MagnusInput } from 'react-native-magnus';

const Input = React.forwardRef(({ ...otherProps }, ref) => {
  return (
    <MagnusInput
      ref={ref}
      pl={20}
      focusBorderColor="blue700"
      bg="gray100"
      rounded="circle"
      fontSize={18}
      fontWeight="400"
      h={57}
      w="100%"
      borderWidth={0}
      {...otherProps}
    />
  );
});

export default Input;

Important Details

  • OS: Android and iOS (not matter the version)
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