Skip to content

[WIP] feat: add support for affix and icon in textinput #1651

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

Merged
merged 10 commits into from
Apr 24, 2020

Conversation

Trancever
Copy link
Contributor

This is still Work in Progress.

@callstack-bot
Copy link

callstack-bot commented Feb 6, 2020

Hey @Trancever, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@github-actions
Copy link

github-actions bot commented Feb 6, 2020

The mobile version of example app from this branch is ready! You can see it here

.

@netlify
Copy link

netlify bot commented Feb 6, 2020

The web version of example app from this branch is ready!

Built with commit 61169cb

https://deploy-preview-1651--happy-heyrovsky-1ce28c.netlify.com

@w90
Copy link

w90 commented Feb 7, 2020

Dawid, if that's what I think it is... Kudos!

@zbot473
Copy link

zbot473 commented Mar 2, 2020

What more needs to get added?

@arunraj-qburst
Copy link

@satya164 This feature is required to add a view password icon in textinput

@clsk
Copy link

clsk commented Mar 31, 2020

Hi, how long before this gets merged? or is there something else that needs to be done that we could work on?

@ghost ghost mentioned this pull request Apr 9, 2020
@jbinda
Copy link
Contributor

jbinda commented Apr 18, 2020

I think after @matkoson refactor it looks pretty solid and close to be merged.

I have tested example app with:

  • iOS Simulator
  • Android Emulator
  • Android device
  • iOS device
  • web

It has little issue with KeyboardAvoidingView on Android (will be fixed with this PR)

Didn't spot any serious functionality issue during test. Some small adjustments that we discussed can be iterate separate later.

I have also check if docs builds and spot some issue (see here). However after solve that I think we can merge it @Trancever

edited:

  • I have solution for fixing the docs and it will be cover separately
  • I have noticed one weird thing and need to check if adornment Icon is pressable on Android

Copy link
Contributor

@jbinda jbinda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have also left some comments to go through

@ild-nucleusstudio
Copy link

Are there any updates for this PR? Can we do need anything to make it available to merge into the next release? I can help it.

@jbinda
Copy link
Contributor

jbinda commented Apr 22, 2020

@ild-nucleusstudio thanks. I did an update and I'm pretty sure it is in shape to be merged. @Trancever would you mind to take final look ?

Please check below GIFs as well because I have fix the Icons on Android (issue mentioned here)

iOS

Android

Web

@w90
Copy link

w90 commented Apr 23, 2020

Hooray! Good job guys

@Trancever
Copy link
Contributor Author

@jbinda @matkoson We used hooks to implement the feature. It means it is a breaking change cause people on the old react-native version won't be able to use it. We need to merge this to branch 4.0 and release the alpha version so people can start using and testing it.

@Trancever Trancever changed the base branch from master to 4.0 April 23, 2020 14:30
@jbinda jbinda force-pushed the textinput-adornment branch from 8e3f8c5 to 2f742e3 Compare April 23, 2020 15:22
@jbinda
Copy link
Contributor

jbinda commented Apr 23, 2020

@Trancever I have fixed commits history after rebase to 4.0

@Trancever Trancever merged commit bc95ae1 into 4.0 Apr 24, 2020
@jbinda
Copy link
Contributor

jbinda commented Apr 24, 2020

Hooray 🚀 🎉

@mpseay
Copy link

mpseay commented Apr 25, 2020

Wow, was just looking for this, thanks ya'll!

@zbot473
Copy link

zbot473 commented Apr 28, 2020

nice!

@kapi-no
Copy link

kapi-no commented May 2, 2020

@jbinda @matkoson We used hooks to implement the feature. It means it is a breaking change cause people on the old react-native version won't be able to use it. We need to merge this to branch 4.0 and release the alpha version so people can start using and testing it.

@Trancever, do you have ETA for alpha release including this feature?

@samaneh-kamalian
Copy link

Hi. thanks for your update.
I use react-native 0.60.4 and I can not use your last update.
after run my app it shows red screen and print this error "the module compoents/Checkbox could not be found from myappDirectory/reac-native-paper/lib/module/index.js".
Is there a solution other than upgrading my react-native?
I do not have enough time to upgrade it!

@jbinda jbinda deleted the textinput-adornment branch June 2, 2020 15:49
@aprilmintacpineda
Copy link

I'd love to be able to use this now, what version has this been released to?

@zbot473
Copy link

zbot473 commented Jun 7, 2020

@aprilmintacpineda It's released to v4.0

@aprilmintacpineda
Copy link

Yeah, I think v4 is not yet out?

@zbot473
Copy link

zbot473 commented Jun 7, 2020

There's an alpha out on npm

@samaneh-kamalian
Copy link

Hi. thanks for your update.
I use react-native 0.60.4 and I can not use your last update.
after run my app it shows red screen and print this error "the module compoents/Checkbox could not be found from myappDirectory/reac-native-paper/lib/module/index.js".
Is there a solution other than upgrading my react-native?
I do not have enough time to upgrade it!

any solution ?

@matkoson
Copy link
Contributor

@samaneh-kamalian Please open an issue. Here, it's a conversation about a PR, an already merged one.

@zbot473
Copy link

zbot473 commented Jun 10, 2020

As much as I hate locked threads, I think locking this one would be good

@soysamy
Copy link

soysamy commented Jun 21, 2020

There's an alpha out on npm

Where can I see the props for this to work? I have the alpha installed

@Vasault
Copy link

Vasault commented Jun 22, 2020

so the only way to test this out is on the alpha version of react native paper?

@Return-1
Copy link

Is there an ETA on this? For now will start using the alpha but just curious. This seems very useful

@AnayoOleru
Copy link

Nice, just looking for this, thanks! But I can't seem to find the documentation for this particular feature on react-native paper docs, can anyone point me to the link?

@theUNnicked
Copy link

@AnayoOleru something about this feature is mentioned here: https://github.com/callstack/react-native-paper/wiki/Migration-guide-for-4.0
or look at https://github.com/callstack/react-native-paper/blob/master/example/src/Examples/TextInputExample.tsx

@AnayoOleru
Copy link

@AnayoOleru something about this feature is mentioned here: https://github.com/callstack/react-native-paper/wiki/Migration-guide-for-4.0
or look at https://github.com/callstack/react-native-paper/blob/master/example/src/Examples/TextInputExample.tsx

Thank you @theUNnicked I've been able to sort it out using the Examples. But I'll suggest the web doc be updated with these examples. I was looking at opening a PR to update the docs, but I can't find the codebase for the web docs. I'll appreciate if you can point me to it.

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

Successfully merging this pull request may close these issues.