Skip to content

[Bug] Pressable Area of Input Component #118

Open
@Gregoire-Bearstudio

Description

@Gregoire-Bearstudio

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions