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

TextInput.Affix Documentation #4529

Open
hugs7 opened this issue Oct 19, 2024 · 0 comments · May be fixed by #4530
Open

TextInput.Affix Documentation #4529

hugs7 opened this issue Oct 19, 2024 · 0 comments · May be fixed by #4530
Labels
Milestone

Comments

@hugs7
Copy link

hugs7 commented Oct 19, 2024

Current behaviour

I noticed the screenshot on the TextInput.Affix documentation page shows an incorrect screenshot. Am referring to page: TextInput.Affix from the documentation website for react-native-paper.

The screenshot shows an example from TextInput.Icon instead. Is this able to be fixed. The code in the example doesn't match the screenshot

image

but the code is

return (
    <TextInput
      mode="outlined"
      label="Outlined input"
      placeholder="Type something"
      right={<TextInput.Affix text="/100" />}    // This should show "/100" at the right of the input
    />
  );

Expected behaviour

The screenshot on the page should show something like this with the /100 visible on the right. (Different placeholder but am just referring to the right attribute.)

image

How to reproduce?

Please see page https://callstack.github.io/react-native-paper/docs/components/TextInput/TextInputAffix

Preview

See above

What have you tried so far?

N/A

Your Environment

N/A

@hugs7 hugs7 added the bug label Oct 19, 2024
@gedu gedu added this to the 5.13.0 milestone Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants